pandas.io.formats.style.Styler.set_properties

pandas 3.1.1 · Styling · method

Set the same CSS properties on cells in the chosen subset.

Call syntax

Styler.set_properties(subset=None, **kwargs)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
subset Optional
Positional or keyword
Default None
label, array-like, IndexSlice

Restrict the operation to these labels instead of considering the whole object.

**kwargs Optional
Additional keyword arguments

Returns

Styler