Skip to content

Instantly share code, notes, and snippets.

@3liud
Created March 21, 2022 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3liud/6bd4122f968988446fa3ff7f53727d3e to your computer and use it in GitHub Desktop.
Save 3liud/6bd4122f968988446fa3ff7f53727d3e to your computer and use it in GitHub Desktop.
week_#7_in_machine learning9
km = KMeans(n_clusters=5)
km.fit(df1)
y = km.predict(df1)
df1['Label'] = y
df1.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment