我不能让输出的XLSX以可用的方式写入日期,我遵循了一些熟悉的线程,比如: https://xlsxwriter.readthedocs.io/example_pandas_datetime.htmlProblem with Python Pandas data output to excel in date format 以下是MWE: import pandas as pd
import xlsxwriter, engine='xlsxwrit
Data:Panda Dataframe, read from excel
01-01-17 1009..import matplotlib.pyplot as pltfrom statsmodels.tsa.stattoolsimport adfuller
CHI = pd.read_excel('
我正在使用Pandas,并对包含日期和时间的列使用了diff()方法,结果类似于"3天02:54:21.750000“。这是它在jupyter notebook中的显示方式,但当我使用以下命令将结果写入excel文件时: with pd.ExcelWriter('Result of analyse.xlsx') as writer:
gdata.to_excel(writer) 这一列在excel文件中的结果就像3个其他信息被省略了!