组结果之后的散点图

发布于 2025-02-01 16:46:07 字数 891 浏览 1 评论 0原文

我有一个数据框,我在熊猫中使用了groupby功能,如以下内容:

备注面积pic平均
特殊101P11000
P21100
102P31050
P41200
P5 1000 P51000
常规101P61500
P71200
P71200
P8 1300 102P91100
P0 P01050

是可能的为分组结果创建散点图吗? 我试图解开stack(),但是图片行变成了列。

情节的目的是比较该区域中的每个图片是否具有特殊的备注,在常规备注中与PIC相似。

I have a dataframe that I have used groupby function in Pandas, as the following:

RemarksAreaPICAverage
Special101P11000
P21100
102P31050
P41200
P51000
Regular101P61500
P71200
P81300
102P91100
P01050

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 技术交流群。

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

发布评论

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