【发布时间】:2020-12-04 04:24:52
【问题描述】:
【问题讨论】:
标签: pandas bar-chart data-science seaborn
【问题讨论】:
标签: pandas bar-chart data-science seaborn
你可以试试这个。
for p in b.patches:
height = p.get_height()
b.text(p.get_x()+p.get_width()/2.,
height + 3,
'{:1.2f}'.format(height/len(df)),
ha="center")
【讨论】:
sns.countplot(hue='coolwarm')