Python 使用第三列中的值定义的系列打印两列

Python 使用第三列中的值定义的系列打印两列,python,pandas,matplotlib,plot,Python,Pandas,Matplotlib,Plot,嗨,我有一个熊猫数据框,看起来像 deflector wFlow aContent DO Difference 64 3 127.5 10 2.007395 65 3 127.5 3 1.163951 66 3 127.5 5 1.451337 67 3 127.5 7 1.535639 68

嗨,我有一个熊猫数据框,看起来像

deflector  wFlow  aContent  DO Difference
64         3  127.5        10       2.007395
65         3  127.5         3       1.163951
66         3  127.5         5       1.451337
67         3  127.5         7       1.535639
68         3   24.0        10       1.046328
69         3   24.0         3       0.854763
70         3   24.0         5       0.766780
71         3   24.0         7       0.905270
72         3   56.0        10       1.274954
73         3   56.0         3       1.298657
74         3   56.0         5       1.049621
75         3   56.0         7       1.004255
76         3   88.0        10       1.194174
77         3   88.0         3       1.056968
78         3   88.0         5       1.066173
79         3   88.0         7       1.097231
我想用wFlow列定义的每一行(x=aContent,y=DO Difference,4条不同的行,每个wFlow一条)来绘制aContent列和DO Difference列

谢谢!

您可以查看数据并使用:


欢迎使用StackOverflow。请阅读并遵循帮助文档中的发布指南。最小、完整、可验证的示例适用。在您发布MCVE代码并准确描述问题之前,我们无法有效帮助您。StackOverflow不是编码或教程服务。另外,添加您尝试过的内容?
df.pivot(index='aContent',columns='wFlow',values='DO Difference').plot()