texthero.representation.kmeans¶ kmeans(s: pandas.core.series.Series, n_clusters=5, init='k-means++', n_init=10, max_iter=300, tol=0.0001, precompute_distances='auto', verbose=0, random_state=None, copy_x=True, n_jobs=- 1, algorithm='auto')¶ Perform K-means clustering algorithm.