分类散点图
- stripplot 或者catplot(kind=’strip‘)
- swarpmplot 或者catplot(kind='swarm') #(蜂巢图
分类分布图
- boxplot 或者 cat plot(kind='box')
- violineplot 或者 cat……
- boxenplot 或者……
分类统计估计图
- pointplot 或者……
- barplot 或者catplot(kind)
- countplot 或者 cat……
sns.stripplot(x='day',y='total_bill',data=tips)
sns.stripplot(x='day',y='total_bill',data=tips,jitter=False)
#jitter -》应用的抖动量(仅沿分类轴)
sns.swarmplot(x='day',y='total_bill',data=tips)
分布图
#分布图
sns.boxplot(x='day',y='total_bill',data=tips)
sns.boxplot(x='day',y='total_bill',data=tips,hue='smoker')
tips['weekend']=tips['day'].isin(['Sat','Sun'])
sns.boxplot(x='day',y='total_bill',data=tips,hue='weekend')
sns.boxplot(x='day',y='total_bill',data=tips,hue='weekend',dodge=False)
#dodge -》 使用 hue 嵌套时将其设置为 True 将沿着分类轴分离不同色调级别的条带
后记:
有需要的朋友可以搜索微信公众号:【知音库】
同时也是为了鼓励自己,坚持写笔记,希望可以共同进步。