7
votes

I was able to visualize my data in a boxplot using Seaborn.

sns.boxplot( x=df['Score'].astype('float'), y=df['Group'] )

The visualization shows me: all four quartiles, lower and upper whisker, and some outliers. How can I also add the Mean line into the boxplots? See current visualization (without mean).

enter image description here

Thanks!

1

1 Answers

19
votes

I just figured it out. The code works like this:

sns.boxplot(x=df['Score'].astype('float'), y=df['Group'],showmeans=True )