2个数据范围堆叠的列的价值计数显示了双Y标签

发布于 2025-02-07 07:50:12 字数 317 浏览 3 评论 0原文

我正在尝试显示彼此堆叠的2个数据范围的列受众的价值计数。 Y标签向观众展示了两次。有没有办法删除该方法?

bar plot

DFGroup.Audience.value_counts().sort_values().unstack('Key').plot(kind = 'barh', stacked = True)

上面找到了代码。我也想更改配色方案

I am trying to show the value counts of the column Audience of 2 dataframes stacked on each other. The y label is showing the Audience twice. Is there a way to remove that please?

Bar plot

DFGroup.Audience.value_counts().sort_values().unstack('Key').plot(kind = 'barh', stacked = True)

The code is found above. I also want to change the color scheme

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文