简体   繁体   中英

Pandas Dataframe save to CSV alters list of times

PLease refer to the picture and help out, I cant seem to solve the issue through casting, is it an encoding issue? 在此处输入代码

To get similar format as in jupyter use format the dates before exporting

df['Times'] = df['Times'].apply(lambda x: [d.strftime('%Y-%m-%d %H:%M:%S') for d in x])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM