Skip to content

Instantly share code, notes, and snippets.

@jrmontag
Created March 31, 2014 21:32
Show Gist options
  • Save jrmontag/9902846 to your computer and use it in GitHub Desktop.
Save jrmontag/9902846 to your computer and use it in GitHub Desktop.
make pandas dataframe slightly easier to read in IPython notebook
pd.set_option('display.max_columns', 10) # repr shows <=10 cols (scrollable)
pd.set_option("display.max_colwidth", 150) # repr shows <=150 characters in each column (line wraps)
# many more options available:
# http://pandas.pydata.org/pandas-docs/stable/basics.html?highlight=set_option#working-with-package-options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment