Clustering, Data Analysis.
silhoutte_avg = silhouette_score(X_num, cluster_labels) print("Silhoutte Score (K-Means) -" + str(n_clusters) +" :" +str(silhoutte_avg)) data0["Clustering_Kmeans_Exp2_" + str(n_clusters)] = cluster_labels Output: #2 K-Medoids pip install scikit-learn-extra from sklearn_extra.cluster import KMedoids