I have a dataset with three columns and thousands of rows as shown below.
The number of classes (clusters)
are 4 as shown in column three (R, I, C, F
).
row id VALUE CLASS
1 284 R
2 254 I
3 184 C
4 177 F
..........
- I am trying to get the cluster plot from the above data based on the 4 classes. The expected output is shown in the picture below.
What I tried: Scatter plot in seaborn
from pandas import read_csv
import seaborn as sns
df2 = read_csv(r'C:\Users\jo\Downloads\Clusters.csv')
sns.scatterplot(data=df2, x="VALUE", y= "rowid",hue="CLASS")