Data Science, Machine Learning, Artificial Intelligence, Technology, Data Mining.
compare them with the mean of the original dataset: # Calculate the mean of the original data original_means = df.mean(axis=0) # Append the mean to the centroids for comparison centroids_comparison_df = centroids_df.append(original_means, ignore_index=True) # Display the comparison