Suppressing scientific notation in pandas?

后端 未结 4 1366
清酒与你
清酒与你 2020-11-27 05:49

I have a DataFrame in pandas where some of the numbers are expressed in scientific notation (or exponent notation) like this:

                  id        val         


        
4条回答
  •  一向
    一向 (楼主)
    2020-11-27 06:49

    quick temporary: df.round(4)

    global: pd.options.display.float_format = '{:20,.2f}'.format

提交回复
热议问题