试试float_format,大概是这样:df.to_excel(xlsx, index=False, sheet_name='sheet1', float_format='%11.1f', columns=[...])%11.2f就是精确2位小数点
关于python中df数字组成文本导出到excel
试试float_format,大概是这样:
df.to_excel(xlsx, index=False, sheet_name='sheet1', float_format='%11.1f', columns=[...])%11.2f就是精确2位小数点
2019-01-24
默认应该就是字符串吧2019-01-23