pandas.io.formats.style.Styler.set_table_attributes

pandas 3.1.1 · Styling · method

Add HTML attributes to the rendered table element.

Call syntax

Styler.set_table_attributes(attributes)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
attributes Required
Positional or keyword
str

Returns

Styler