Skip to content

reduce output when printing indices and columns in pandas data frame and series #19183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DonBeo opened this issue Jan 11, 2018 · 1 comment
Closed
Labels
Duplicate Report Duplicate issue or pull request MultiIndex Output-Formatting __repr__ of pandas objects, to_string

Comments

@DonBeo
Copy link

DonBeo commented Jan 11, 2018

I often work with pandas using big dataframes and series with multi-index or multi-column and I use the EMACS shell.

Often when I write df.index the output is so big that almost make my computer crash (and it is a powerful pc).

As when you output a dataframe df the output is truncated to the first and last n columns, also indices and columns should be truncated when printed to screen.

@DonBeo DonBeo changed the title print indeces and columns in pandas data frame and series reduce output when printing indices and columns in pandas data frame and series Jan 11, 2018
@jreback jreback added Output-Formatting __repr__ of pandas objects, to_string Duplicate Report Duplicate issue or pull request MultiIndex labels Jan 11, 2018
@jreback jreback added this to the No action milestone Jan 11, 2018
@jreback
Copy link
Contributor

jreback commented Jan 11, 2018

duplicates of #12423 and #13480

@jreback jreback closed this as completed Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request MultiIndex Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

2 participants