Machine Learning, Unsupervised Learning, Clustering, K Means.
Calculate the mean of each feature for each cluster cluster_mean = cluster_group.mean().reset_index() cluster_mean # Define a color map color_map = sns.diverging_palette(10, 220, as_cmap=True) cluster_mean.style.background_gradient(cmap=color_map, subset=list(set(cluster_mean.columns)-{'cluster'}))