pandas to_excel、to_csv的float_format参数设置

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

  

猜你喜欢

转载自www.cnblogs.com/mahailuo/p/10076073.html