ENH: Always display column headers in HTML output when scrolling down on long dataframes #33606
Labels
Closing Candidate
May be closeable, needs more eyeballs
Enhancement
Output-Formatting
__repr__ of pandas objects, to_string
Styler
conditional formatting using DataFrame.style
Is your feature request related to a problem?
I sometimes need to visually screen several hundreds of records. For this I do:
and then display the dataframe in the output cell of a jupyter notebook.
However if the dataframe is long enough to not fit in a single browser window, scrolling down hides the column headers and it makes it really hard to interpret the content of bottom records.
Describe the solution you'd like
It would be very nice to use some CSS wizardry to always keep the column headers visible just below the top edge of the browser viewport when scrolling down in a notebook with a long dataframe that does not fit entirely in the browser viewport at once.
Alternatively solution
An alternative it to slice the long DF into chunks and display with 50 or so records and display each chunk sequentially so that each of them always fit on the screen. But this is tedious and generates many jupyter cells which is not necessarily desired.
The text was updated successfully, but these errors were encountered: