Skip to content

Instantly share code, notes, and snippets.

@gabriellm1
Last active November 23, 2020 20:18
Show Gist options
  • Save gabriellm1/100b1e1f3d06beaedadd9471f4581deb to your computer and use it in GitHub Desktop.
Save gabriellm1/100b1e1f3d06beaedadd9471f4581deb to your computer and use it in GitHub Desktop.
enc = OrdinalEncoder()
labels = enc.fit_transform(labels[['Class']])
labels *= 100
plt.scatter(df_principal['P1'], df_principal['P2'], c=labels , cmap=plt.cm.cool)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment