我有从json导入的数据框:
DateAndTime TAGID TagValue UIB
5 2017-04-26 00:00:00.000 105 109.9 NaN
23 2017-04-26 00:01:00.000 105 123.8 NaN
41 2017-04-26 17:46:00.000 105 106.1 NaN
59 2017-04-26 00:07:00.000 105 108.3 NaN
77 2017-04-26 16:38:00.000 105 103.8 NaN
95 2017-04-26 16:39:00.000 105 103.7 NaN
113 2017-04-26 00:08:00.000 105 107.8 NaN
131 2017-04-26 10:42:00.000 105 108.0 NaN
代码:
df105.to_csv("ddf105.csv", index=False)
创建的csv文件只有几分钟和几秒的时间。像这样:
DateAndTime
00:00.0
01:00.0
46:00.0
07:00.0
38:00.0
39:00.0
08:00.0
42:00.0
36:00.0
如何解决这个问题?