Skip to content

ENH: add dataframe render trimming in Styler to avoid browser crash #40712

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
attack68 opened this issue Mar 31, 2021 · 1 comment · Fixed by #41635
Closed

ENH: add dataframe render trimming in Styler to avoid browser crash #40712

attack68 opened this issue Mar 31, 2021 · 1 comment · Fixed by #41635
Labels
Bug Styler conditional formatting using DataFrame.style
Milestone

Comments

@attack68
Copy link
Contributor

DataFrame.to_html has max rows and max cols to automatically trim the console or string output.

DataFrame.styler.render does not and with large DataFrames this can potentially crash the browser of a Jupyter Notebook, or maybe a console.

Personally, I use Styler occasionally to quickly avoid the reasonably small max values in the former and this I would want to keep, but some tolerable, larger limit should be imposed in my opinion.

@attack68 attack68 added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member Bug Styler conditional formatting using DataFrame.style and removed Needs Triage Issue that has not been reviewed by a pandas team member Enhancement labels Mar 31, 2021
@LarWong
Copy link
Contributor

LarWong commented Apr 4, 2021

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants