pandas.io.formats.style.Styler.set_td_classes#

Styler.set_td_classes(classes)[source]#

Set the class attribute of HTML elements.

Parameters:
classesDataFrame

DataFrame containing strings that will be translated to CSS classes, mapped by identical column and index key values that must exist on the underlying Styler data. None, NaN values, and empty strings will be ignored and not affect the rendered HTML.

Returns:
Styler

See also

Styler.set_table_styles

Set the table styles included within the ' '

' ' ' ' ' ' ' ' ' ' ' ' ' '
0
1
'