0

I have a df where when I see its head(), I see values like this:

id val
1  24228    

However, when I check df.describe(), I see values in a scientific notation. Can this be avoided to see values in full decimal values?

           val
mean       7.302745e+04
x89
  • 2,798
  • 5
  • 46
  • 110
  • This should help: https://stackoverflow.com/questions/41328633/how-do-i-print-entire-number-in-python-from-describe-function – LazyEval Jun 05 '21 at 17:20

1 Answers1

1

You can play around with the display.float_format to suit what you need. Maybe something like this:

import pandas as pd
pd.set_option('display.float_format', lambda x: '%.4f' % x)
not_speshal
  • 22,093
  • 2
  • 15
  • 30