gpt4 book ai didi

python - 如何在 python 中根据索引绘制图形

转载 作者:太空宇宙 更新时间:2023-11-04 07:26:31 24 4
gpt4 key购买 nike

<分区>

数据如下所示:

        1       2       3       4
foo
t0 95 95.5 75.5 85
t1 95.75 95.5 75.5 85
t2 96.5 95.5 75.5 85
t3 96.5 95.5 75.5 85
t4 96.5 95.5 75.5 85
... ... ... ... ...
t9996 95.5 95 75.5 85.5
t9997 95.5 95 75.5 85.5
t9998 95.5 95 75.5 85.5
t9999 95.5 95 75.5 85.5
t10000 95.5 95 75.5 85.5

我想根据索引绘制 4 个时间序列。使用代码:

df.plot(x = 'foo', y = '1')

我收到这个错误:

KeyError: 'foo'

我应该怎么做?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com