0

This is my entire dataframe.

.

I want a 2d scatter plot based on column '0' and '1' according to column class wise. There are all total 32 classes. So in my plot there will be 32 unique colors.


As an example , If i plot this,

enter image description here

the plot should consist of 8 points whose co-ordinates are (0.038556,-0.011442),(0.051171,0.009094) so on so forth. And there are three classes 1) travel 2) politics, 3) sports so three unique color will be used as label.

How to plot this entire data frame like this using python?


EDIT

enter image description here

Thanks for this code. but how to edit that red marked portion, it covers the actual plot so nothing is visible.

gremur
  • 1,645
  • 2
  • 7
  • 20
Amartya
  • 173
  • 8

0 Answers0