Skip to content
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

Truncate DataFrames centrally, rather than at one end #5603

Closed
takluyver opened this issue Nov 28, 2013 · 6 comments · Fixed by #7086
Closed

Truncate DataFrames centrally, rather than at one end #5603

takluyver opened this issue Nov 28, 2013 · 6 comments · Fixed by #7086
Labels
Enhancement Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@takluyver
Copy link
Contributor

This came up in discussion on #5550 and #5594. The default plain & HTML repr now truncates DataFrames to the first max_rows rows and max_columns columns. At least for rows, truncating in the middle (so we show the first max_rows//2 and the last max_rows//2 rows) would be more consistent with the display of Series and numpy arrays.

This isn't a major change, but it's not completely trivial either, which is why I haven't done it already. I'll try to get round to it, but if someone else wants to work on it, go for it.

@jreback
Copy link
Contributor

jreback commented Feb 16, 2014

@takluyver I think this would be real nice for 0.14!

I would just default this (though could have an option display.show or something , and make head_tail the default and allow head as well (I think their is an option for how MUCH to show already somewhere)....

@jreback
Copy link
Contributor

jreback commented Mar 28, 2014

@takluyver can you do this?

@jreback
Copy link
Contributor

jreback commented Apr 6, 2014

@takluyver ?

@bjonen
Copy link
Contributor

bjonen commented Apr 23, 2014

I can submit a PR for this on the weekend, as it affects the display options similar to #6890

@jreback
Copy link
Contributor

jreback commented Apr 23, 2014

@bjonen excellent!

@takluyver
Copy link
Contributor Author

Oh, sorry, the 'pandas' label is below the fold on GMail, so I didn't notice I was getting pinged. I'm happy for @bjonen to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants