I found plenty of answers on how to suppress scientific notation in pandas, but how do I enable it? I found the option pd.set_option('precision', 2)
but it does not turn large numbers into scientific notation.
For example, I would like the number 123066.14
to be formatted as 1.23E+5
. I am using a pandas.DataFrame
, and it would be useful to set the formatting for an entire column when exporting/printing.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…