我有这个数据框(对不起,我仍然不确定如何在复制粘贴旁边将数据框放在此处并手动移动数据)
Data
ID 1 2
month_year time
2012-01 00:00:00 0.703152 0.665456
00:15:00 0.681054 0.638654
00:30:00 0.675015 0.643397
00:45:00 0.679496 0.678383
01:00:00 0.714171 0.676011
01:15:00 0.689431 0.646955
01:30:00 0.689431 0.651699
01:45:00 0.674041 0.672454
02:00:00 0.694496 0.658815
02:15:00 0.688652 0.658222
02:30:00 0.696054 0.668896
02:45:00 0.700730 0.678384
03:00:00 0.708716 0.726415
03:15:00 0.763652 0.716928
03:30:00 0.757029 0.683127
03:45:00 0.748652 0.670082
04:00:00 0.746899 0.690244
04:15:00 0.738522 0.709219
04:30:00 0.743003 0.757845
04:45:00 0.762094 0.788087
05:00:00 0.783717 0.794017
05:15:00 0.805536 0.803505
05:30:00 0.806121 0.805878
05:45:00 0.827940 0.863398
06:00:00 0.977163 1.062645
06:15:00 1.088594 1.147444
06:30:00 1.091907 1.180059
06:45:00 1.095802 1.210300
07:00:00 1.118400 1.215045
07:15:00 1.090933 1.184802
... ... ... ...
2012-12 16:45:00 1.095664 1.079648
17:00:00 1.100803 1.134505
17:15:00 1.110867 1.127874
17:30:00 1.128853 1.109789
17:45:00 1.110439 1.123051
18:00:00 1.098448 1.128476
18:15:00 1.088598 1.076031
18:30:00 1.071468 1.052522
18:45:00 1.078749 1.096527
19:00:00 1.108084 1.156809
19:15:00 1.109368 1.097130
19:30:00 1.098234 1.086279
19:45:00 1.058836 1.060358
20:00:00 1.053269 1.059755
20:15:00 1.061833 1.034437
20:30:00 1.042990 1.030820
20:45:00 1.051983 1.062770
21:00:00 1.049841 1.073018
21:15:00 0.992886 1.075429
21:30:00 0.963979 1.029614
21:45:00 0.955628 1.036245
22:00:00 0.948562 1.036245
22:15:00 0.942781 1.039862
22:30:00 0.919013 1.016955
22:45:00 0.916658 1.005501
23:00:00 0.921154 0.989225
23:15:00 0.884754 0.872880
23:30:00 0.698040 0.748096
23:45:00 0.702751 0.709516
2013-01 00:00:00 1.000000 1.000000
这是到目前为止我制作图形的代码。就是这么简单,这给了我整个十二个月的年图。但是我试图用每个子图上的1和2数据来做每个月的子图。我该怎么办?
df.plot(legend=True,figsize=(20,10),ylim=(0.5,1.5))
非常感谢您的帮助!非常感谢