Data Science, Artificial Intelligence, K Means, Audience Engagement, Python.
labels cluster_df = pd.DataFrame(data=X_scaled_red, columns=['pc1','pc2','pc3','pc4','pc5','pc6','pc7','pc8','pc9','pc10']) cluster_df['cluster'] = cluster_labels Next, we will use Matplotlib’s mplot3d toolkit to create a 3D plot of our clusters. # Define which features to plot feature1 = 'pc1'