logo

[python-ds] 시본으로 집단 비교 시각화

 

seaborn

import seaborn as sns
 

stripplot

sns.stripplot(x='income', y='education_num', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23a68ee7b70>
 

boxplot

sns.boxplot(x='income', y='education_num', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23f29eb0470>
 

boxenplot

sns.boxenplot(x='income', y='education_num', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23f2a591f98>
 

violinplot

sns.violinplot(x='income', y='education_num', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23f2a3ebac8>
 

barplot

sns.barplot(x='income', y='education_num', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23f2a630b38>
 

countplot

sns.countplot(x='income', data=df)
<matplotlib.axes._subplots.AxesSubplot at 0x23f2b70fbe0>
Previous
판다스: 그룹핑