This should be really easy but I can't figure it out for the life of me. Here is a sample of my dataframe.
\n
sns.boxplot(x='dataset', y='value', hue='Model', data=dd)
but I get this error
ValueError: List of boxplot statistics and
positionsvalues must have same the length
As was mentioned in the comments you want to convert your data to floats
dd['value'] = dd['value'].astype(float)
sns.boxplot(x='dataset', y='value', hue='Model', data=dd)
Should work for you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With