anonuser0428
anonuser0428

Reputation: 12363

python pandas unable to display summary of large dataframe

I recently upgraded to pandas version 0.13 and am experiencing this problem where no matter how big my dataframe is ( the biggest one has 25 columns and 158430 rows), pandas prints out the entire dataframe (well not the entire thing, just a few rows in each column but it's still messy!) instead of printing out the summary table which is much cleaner in the case of such large data frames. I was just wondering whether anyone else is having this problem or has had this problem in the past and knows how to fix it.

Thanks in advance!

Upvotes: 2

Views: 2205

Answers (1)

TomAugspurger
TomAugspurger

Reputation: 28956

Here's the change in the what's new for .13.

The old way was to print the result of df.info(). You can change the behavior to always do that with set_option('display.large_repr', 'info'). You can add that to your IPython startup file if you're using IPython.

Upvotes: 7

Related Questions