Styler.set_sticky(axis=0, pixel_size=None, levels=None)[source]

Add CSS to permanently display the index or column headers in a scrolling frame.

axis{0 or ‘index’, 1 or ‘columns’, None}, default 0

Whether to make the index or column headers sticky.

pixel_sizeint, optional

Required to configure the width of index cells or the height of column header cells when sticking a MultiIndex. Defaults to 75 and 25 respectively.

levelslist of int

If axis is a MultiIndex the specific levels to stick. If None will stick all levels.