Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

seaborn.boxplot and dataframe

I have a DataFrame like this:

dataframe

I tried these two instructions one after another:

sns.boxplot([dataFrame.mean_qscore_template,dataFrame.mean_qscore_complement,dataFrame.mean_qscore_2d])

sns.boxplot(x = "mean_qscore_template", y= "mean_qscore_complement", hue = "mean_qscore_2d" data = tips)

I want to get mean_qscore_template, mean_qscore_complement and mean_qscore_2d on the x-axis with the measure on y-axis but it doesn't work.

image

In the documentation they give an example with tips but my dataFrame is not organized f the same way.

like image 637
Lionelus Avatar asked Jan 04 '23 06:01

Lionelus


1 Answers

sns.boxplot(data = dataFrame) will make boxplots for each numeric column of your dataframe.

like image 72
gereleth Avatar answered Jan 08 '23 10:01

gereleth