본문 바로가기
Python

[python][seaborn] Grouped Boxplot, Multiple Boxplot, 그룹별 boxplot

by Chandler.j 2021. 1. 8.
반응형

fig1. title

#1. source data

print(df_age_error.info())

fig2. source data

 

#2. seaborn

import seaborn as sns

sns.boxplot(y='pred-true', x='age_gp', data=df_age_error)

fig3. grouped boxplot

 

reference : https://cmdlinetips.com/2019/03/how-to-make-grouped-boxplots-in-python-with-seaborn/

 

How To Make Grouped Boxplots in Python with Seaborn? - Python and R Tips

Boxplots are one of the most common ways to visualize data distributions from multiple groups. In Python, Seaborn potting library makes it easy to make boxplots and similar plots swarmplot and stripplot. Sometimes, your data might have multiple subgroups a

cmdlinetips.com


TOP

Designed by 티스토리