饼图 - 如何仅表示列的一个值?
目标 - 我们可以在饼图上仅表示一个值吗? 例如,我有一个名为“严重性”的列,总共有500个值,并包含多个值“ CAT 1”& “ CAT 2”和单个计数如下(CAT 1-484&和Cat2 -16)
我的问题是我可以在饼图上表示一个值吗? (即)仅具有475个值的CAT 1(请参阅下面的屏幕截图,以获取更多
Goal - Can we represent just one value on the pie chart?
For example, I have a column titled 'Severity' and it has 500 values in total and contains multiple values 'CAT 1' & 'CAT 2' and individual count are as follows (CAT 1 - 484 & and CAT2 -16)
My question is can I represent on PIE chart just one value? (i.e) only CAT 1 which has 475 values (please see the below screenshot attached for more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如何在Matplotlib饼图中显示实际值a> - 我认为这有您想要的。
例如
,IF语句当然可以与DF数据匹配。
How to have actual values in matplotlib Pie Chart displayed - I think this has what you are looking for.
e.g.
Of course the if statement could be conditional on a match with df data.