我在尝试散点图时在 'time' 上出现键盘错误,如何散点图时间?
i get keyerror on 'time' when trying to scatter plot, how to scatter plot time?
当我尝试散点图时,'time' 出现键盘错误,我该如何散点图这些列?
high time
0 17.23 10:37:00
1 17.64 14:01:00
2 15.28 09:31:00
3 15.56 11:41:00
4 15.56 11:42:00
5 15.25 09:30:00
6 15.25 09:49:00
7 15.10 15:52:00
8 16.41 10:40:00
9 17.75 15:09:00
10 17.75 15:10:00
11 19.20 09:41:00
df_high.plot.scatter(x='time', y='high', c=None, s=None)
plt.show()
df.set_index('time').sort_index().plot(style='.')
当我尝试散点图时,'time' 出现键盘错误,我该如何散点图这些列?
high time
0 17.23 10:37:00
1 17.64 14:01:00
2 15.28 09:31:00
3 15.56 11:41:00
4 15.56 11:42:00
5 15.25 09:30:00
6 15.25 09:49:00
7 15.10 15:52:00
8 16.41 10:40:00
9 17.75 15:09:00
10 17.75 15:10:00
11 19.20 09:41:00
df_high.plot.scatter(x='time', y='high', c=None, s=None)
plt.show()
df.set_index('time').sort_index().plot(style='.')