from sklearn import cluster [centroid, label, inertia] = cluster.k_means(data_to_be_classified, num_of_clusters)