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

Enhance __repr__ and _repr_html_ with a note for additional rows #1026

Open
konjac opened this issue Feb 18, 2025 · 1 comment
Open

Enhance __repr__ and _repr_html_ with a note for additional rows #1026

konjac opened this issue Feb 18, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@konjac
Copy link

konjac commented Feb 18, 2025

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Nowadays, __repr__ and _repr_html_ only shows 10 rows. If the DataFrame contains more than 10 rows, we can show message to indicate there are truncated rows.

Describe the solution you'd like
@timsaucer shared a thought in #discussion_r1957173896. Just take 11 rows internally. If 11 rows are returned, display message for additional rows.

Describe alternatives you've considered
n/a

Additional context
n/a

@kylebarron
Copy link
Contributor

You could also implement a "config" system like pandas uses, so the user can opt-in to displaying more columns or rows https://pandas.pydata.org/docs/user_guide/options.html#overview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants