python - ipython notebook pandas max allowable columns -
i have simple csv file ten columns!
when set following option in notebook , print csv file (which in pandas dataframe) doesn't print columns left right, prints first two, next 2 underneath , on.
i used option, why isn't working?
pd.option_context("display.max_rows",1,"display.max_columns",100)
even doesn't seem work:
pandas.set_option('display.max_columns', none)
i assume want display data in notebook following options work fine me (ipython 2.3):
import pandas pd ipython.display import display data = pd.read_csv('yourdata.txt')
either directly set option
pd.options.display.max_columns = none display(data)
or, use set_option method showed works fine well
pd.set_option('display.max_columns', none) display(data)
if don't want set options whole script use context manager
with pd.option_context('display.max_columns', none): display(data)
if doesn't help, might give minimal example reproduce issue.
Comments
Post a Comment