pandas.io.formats.style.Styler.set_table_styles
pandas 3.1.1 · Styling · method
Define CSS selectors and style declarations scoped to the rendered table.
Call syntax
Styler.set_table_styles(table_styles=None, axis=0, overwrite=True, css_class_names=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
table_styles |
Optional Positional or keyword Default None |
list or dict |
axis |
Optional Positional or keyword Default 0 |
{0 or 'index', 1 or 'columns', None} Choose which axis the operation acts on. The accepted axis labels depend on the receiver. |
overwrite |
Optional Positional or keyword Default True |
bool Choose whether existing entries can be replaced. |
css_class_names |
Optional Positional or keyword Default None |
dict |
Returns
Styler