<div dir="ltr"><div><div>I think what you are looking for is the print options. Try setting the max_columns for a higher number. <br><br></div>Example:<br><br><span style="font-family:courier new,monospace"> pandas.set_option('display.max_columns', 50)</span><br>
<br><br></div><div>Documentation on set_option.<br><a href="http://pandas.pydata.org/pandas-docs/stable/basics.html?highlight=set_option">http://pandas.pydata.org/pandas-docs/stable/basics.html?highlight=set_option</a><br>
<br><br></div>Here's a similar StackOverflow question which also mentions the terminal size. Note, they use a depricated method, `set_printoptions'.</div><div class="gmail_extra"><br clear="all"><div><br>
-- <br>
Jason Wirth<br>
213.675.5294<br>
<a href="mailto:wirth.jason@gmail.com" target="_blank">wirth.jason@gmail.com</a></div>
<br><br><div class="gmail_quote">On Sat, Sep 7, 2013 at 7:20 AM, FernandoSaldanha <span dir="ltr"><<a href="mailto:fsaldan1@gmail.com" target="_blank">fsaldan1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am exploring IPython under Spyder and I found that it prints pandas<br>
DataFrames in nicely formatted tables. Much better than the normal printing,<br>
which has the column names misaligned with the columns. Two questions:<br>
<br>
1) When the number of columns is more than just a few IPython does not print<br>
the contents, it just shows a summary. This happens even if there is plenty<br>
of real estate to show more columns. Is there a way to tell IPython to<br>
increase the number of columns to be displayed?<br>
<br>
2) In Spyder one can choose to have IPython show graphics inline or in<br>
separate windows. This is a very nice feature. Sometimes I like to have<br>
graphs in separate windows so I don't have to scroll back to see them. Can<br>
one do the same with the tables that display pandas DataFrames?<br>
<br>
Thanks for the help.<br>
<br>
FS<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://python.6.x6.nabble.com/Width-of-pandas-DataFrames-in-IPython-tp5031058.html" target="_blank">http://python.6.x6.nabble.com/Width-of-pandas-DataFrames-in-IPython-tp5031058.html</a><br>
Sent from the IPython - Development mailing list archive at Nabble.com.<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>