【问题标题】:Seaborn bar chart on grouped by result on the grouped by categorical column按分类列分组的按结果分组的 Seaborn 条形图
【发布时间】:2021-03-01 08:25:18
【问题描述】:
我想在 seaborn 条形图上显示以下数据,并且只有分组数据可用。
我只想通过 seaborn 重现相同的结果。
【问题讨论】:
标签:
python-3.x
pandas
seaborn
【解决方案1】:
barplot:
sns.barplot(y=df.index, x=df['vote_count'], orient='h')
输出: