Skip to content

Instantly share code, notes, and snippets.

@egemenzeytinci
Last active June 14, 2019 08:24
Show Gist options
  • Save egemenzeytinci/fbd2f837cf39e4cad9aeb3633b4e3253 to your computer and use it in GitHub Desktop.
Save egemenzeytinci/fbd2f837cf39e4cad9aeb3633b4e3253 to your computer and use it in GitHub Desktop.
Set some options in pandas
import pandas as pd
# display full columns
pd.set_option('display.max_columns', None)
# display full rows
pd.set_option('display.max_rows', None)
# non-truncated col values
pd.set_option('display.max_colwidth', -1)
# float format
pd.set_option('display.float_format', '{:20,.2f}'.format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment