小编Eye*_*lum的帖子

如何向计数图中添加百分比?

我需要显示条形图的百分比。但是我不知道该怎么做。

sns.set_style('whitegrid')
sns.countplot(y='type',data=df,palette='colorblind')
plt.xlabel('Count')
plt.ylabel('Type')
plt.title('Movie Type in Disney+')
plt.show()
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

python matplotlib seaborn plot-annotations countplot

0
推荐指数
1
解决办法
1186
查看次数