FYI

-------- Original-Nachricht --------
Betreff:        Re: Width of pandas DataFrames in IPython
Datum:  Sat, 7 Sep 2013 08:02:39 -0500
Von:    Jason Wirth <[email protected]>
Antwort an:     IPython developers list <[email protected]>
An:     IPython developers list <[email protected]>
Newsgruppen:    gmane.comp.python.ipython.devel
Referenzen:     <[email protected]>



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

Example:

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


Documentation on set_option.
http://pandas.pydata.org/pandas-docs/stable/basics.html?highlight=set_option
<http://pandas..pydata.org/pandas-docs/stable/basics.html?highlight=set_option>


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


-- 
Jason Wirth
    213.675.5294
    [email protected] <mailto:[email protected]>


On Sat, Sep 7, 2013 at 7:20 AM, FernandoSaldanha <[email protected]
<mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    http://mail.scipy.org/mailman/listinfo/ipython-dev




-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
_______________________________________________
IPython-dev mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/ipython-dev

Reply via email to