Matplotlib doesn't draw data from one column

Viewed 69

Here' the dataframe I have

Dataframe

I try to draw a plot with Sample Size as x-axis and the rest of the columns as y-axis

Here's my code:

df.plot(x='Sample Size',y=df.columns[:-1])

I have also tried Seaborn:

dfm = df.melt('Sample Size', var_name='Metrics', value_name='vals')
        
g = sns.catplot(x='Sample Size', 
                y='vals', 
                hue='Metrics', 
                data=dfm, 
                kind='point',
                height=6.27, 
                aspect=8.27/6.27)

However that is what I get

Plot

And same for point plot in Seaborn.

As you can see the Sensitivity data isn't drawn.

There is no NaN values and I tried to reset index in case it was the fault. I really don't know why it does that.

Any ideas?

0 Answers
Related