Machine Learning, Artificial Intelligence, Technology, Python, Data Science.
np.append(X1,X2,axis = 1) hierCl = HieraarchicalClustering.linkage(df, method='ward') Hcl= AgglomerativeClustering(n_clusters = 7, affinity = 'euclidean', linkage ='ward') Hcl_fitted = Hcl.fit_predict(df) df = pd.DataFrame(df) df["labels"] = Hcl_fitted Hierarchical Clustering: Visualization