组结果之后的散点图
我有一个数据框,我在熊猫中使用了groupby功能,如以下内容:
备注 | 面积 | pic | 平均 |
---|---|---|---|
特殊 | 101 | P1 | 1000 |
P2 | 1100 | ||
102 | P3 | 1050 | |
P4 | 1200 | ||
P5 1000 P5 | 1000 | ||
常规 | 101 | P6 | 1500 |
P7 | 1200 | ||
P7 | 1200 | ||
P8 1300 102 | P9 | 1100 | |
P0 P0 | 1050 |
是可能的为分组结果创建散点图吗? 我试图解开stack(),但是图片行变成了列。
情节的目的是比较该区域中的每个图片是否具有特殊的备注,在常规备注中与PIC相似。
I have a dataframe that I have used groupby function in Pandas, as the following:
Remarks | Area | PIC | Average |
---|---|---|---|
Special | 101 | P1 | 1000 |
P2 | 1100 | ||
102 | P3 | 1050 | |
P4 | 1200 | ||
P5 | 1000 | ||
Regular | 101 | P6 | 1500 |
P7 | 1200 | ||
P8 | 1300 | ||
102 | P9 | 1100 | |
P0 | 1050 |
Is it possible to create a scatter plot for the grouped result?
I've tried to unstack(), but the PIC rows became the column.
The purpose of the plot is to compare whether each PIC in the Area with Remarks Special is similar in term of Average with PIC in Regular remarks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论