[IPython-dev] Width of pandas DataFrames in IPython

Jason Wirth wirth.jason at gmail.com
Sat Sep 7 09:02:39 EDT 2013

I think what you are looking for is the print options. Try setting the
max_columns for a higher number.


    pandas.set_option('display.max_columns', 50)

Documentation on set_option.

Here's a similar StackOverflow question which also mentions the terminal
size. Note, they use a depricated method, `set_printoptions'.

Jason Wirth
    wirth.jason at gmail.com

On Sat, Sep 7, 2013 at 7:20 AM, FernandoSaldanha <fsaldan1 at gmail.com> wrote:

> I am exploring IPython under Spyder and I found that it prints pandas
> DataFrames in nicely formatted tables. Much better than the normal
> printing,
> which has the column names misaligned with the columns. Two questions:
> 1) When the number of columns is more than just a few IPython does not
> print
> the contents, it just shows a summary. This happens even if there is plenty
> of real estate to show more columns. Is there a way to tell IPython to
> increase the number of columns to be displayed?
> 2) In Spyder one can choose to have IPython show graphics inline or in
> separate windows. This is a very nice feature. Sometimes I like to have
> graphs in separate windows so I don't have to scroll back to see them. Can
> one do the same with the tables that display pandas DataFrames?
> Thanks for the help.
> FS
> --
> View this message in context:
> http://python.6.x6.nabble.com/Width-of-pandas-DataFrames-in-IPython-tp5031058.html
> Sent from the IPython - Development mailing list archive at Nabble.com.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130907/3ad47278/attachment.html>

More information about the IPython-dev mailing list