pandas.io.formats.style.Styler.set_sticky
pandas 3.1.1 · Styling · method
Keep selected headers in view when scrolling the rendered table.
Call syntax
Styler.set_sticky(axis=0, pixel_size=None, levels=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
axis |
Optional Positional or keyword Default 0 |
{0 or 'index', 1 or 'columns'} Choose which axis the operation acts on. The accepted axis labels depend on the receiver. |
pixel_size |
Optional Positional or keyword Default None |
int |
levels |
Optional Positional or keyword Default None |
int, str, list Supply level definitions for a hierarchical index. |
Returns
Styler