Skip to content

ENH: Styler.set_sticky for maintaining index and column headers in HTML frame #42072

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

Merged
merged 9 commits into from
Jun 17, 2021

Conversation

attack68
Copy link
Contributor

This allows you to quickly make the index and/or column headers stick in place when scrolling in HTML.
Additional args allow the control of subselecting specific multiindex levels and controlling the width /or height of the sticking elements.

set_sticky.mov

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment, ping on green.

@@ -29,7 +29,7 @@ enhancement2

Other enhancements
^^^^^^^^^^^^^^^^^^
-
- Added :meth:`.Styler.set_sticky` to make index and column headers permanently visible in HTML frames (:issue:`29072`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can stick this in 1.3 is ok

@jreback jreback added this to the 1.3 milestone Jun 17, 2021
@jreback jreback added the Styler conditional formatting using DataFrame.style label Jun 17, 2021
@jreback jreback merged commit fce7f9e into pandas-dev:master Jun 17, 2021
@jreback
Copy link
Contributor

jreback commented Jun 17, 2021

thanks @attack68

@jreback
Copy link
Contributor

jreback commented Jun 17, 2021

@meeseeksdev backport 1.3.x

@lumberbot-app
Copy link

lumberbot-app bot commented Jun 18, 2021

Something went wrong ... Please have a look at my logs.

jreback pushed a commit that referenced this pull request Jun 18, 2021
…d column headers in HTML frame (#42096)

Co-authored-by: attack68 <[email protected]>
@attack68 attack68 deleted the sticky_headers branch June 18, 2021 05:09
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
@ShawnZhong ShawnZhong mentioned this pull request May 26, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sticky header and index for large data frames in Jupyter
2 participants