pandas to_excel、to_csv的float_format参数设置

df.to_excel(outpath,float_format='%.2f')

  

原文地址:https://www.cnblogs.com/mahailuo/p/10076073.html