Data Science/Pandas

[pandas] Set options

See_the_forest 2022. 9. 18. 15:33

Pandas has an options API configure and customize global behavior related to DataFrame display, date behavior and more.

 

The most using options for dataframe are below :

 

import pandas 

# Max column views 
pd.options.display.max_columns = 999 

# Suppress scientific notation
pd.set_option('display.float_format', lambda x: '%.5f' % x)