o.formats.style.Styler.set_uuid ](pandas.io.formats.style.Styler.set_uuid.html)
    * [ pandas.io.formats.style.Styler.clear ](pandas.io.formats.style.Styler.clear.html)
    * [ pandas.io.formats.style.Styler.pipe ](pandas.io.formats.style.Styler.pipe.html)
    * [ pandas.io.formats.style.Styler.highlight_null ](pandas.io.formats.style.Styler.highlight_null.html)
    * [ pandas.io.formats.style.Styler.highlight_max ](pandas.io.formats.style.Styler.highlight_max.html)
    * [ pandas.io.formats.style.Styler.highlight_min ](pandas.io.formats.style.Styler.highlight_min.html)
    * [ pandas.io.formats.style.Styler.highlight_between ](pandas.io.formats.style.Styler.highlight_between.html)
    * [ pandas.io.formats.style.Styler.highlight_quantile ](pandas.io.formats.style.Styler.highlight_quantile.html)
    * [ pandas.io.formats.style.Styler.background_gradient ](pandas.io.formats.style.Styler.background_gradient.html)
    * [ pandas.io.formats.style.Styler.text_gradient ](pandas.io.formats.style.Styler.text_gradient.html)
    * [ pandas.io.formats.style.Styler.bar ](pandas.io.formats.style.Styler.bar.html)
    * [ pandas.io.formats.style.Styler.to_html ](pandas.io.formats.style.Styler.to_html.html)
    * [ pandas.io.formats.style.Styler.to_latex ](pandas.io.formats.style.Styler.to_latex.html)
    * [ pandas.io.formats.style.Styler.to_excel ](pandas.io.formats.style.Styler.to_excel.html)
    * [ pandas.io.formats.style.Styler.to_string ](pandas.io.formats.style.Styler.to_string.html)
    * [ pandas.io.formats.style.Styler.export ](pandas.io.formats.style.Styler.export.html)
    * [ pandas.io.formats.style.Styler.use ](pandas.io.formats.style.Styler.use.html)
  * [ Plotting ](../plotting.html)
  * [ Options and settings ](../options.html)
  * [ Extensions ](../extensions.html)
  * [ Testing ](../testing.html)
  * [ Missing values ](../missing_value.html)

  * [ __ ](../../index.html)
  * [ API reference ](../index.html)
  * [ Style ](../style.html)
  * pandas.io.fo... 

#  pandas.io.formats.style.Styler.set_table_styles  #

Styler.  set_table_styles  (  _ table_styles  =  None  _ , _ axis  =  0  _ , _
overwrite  =  True  _ , _ css_class_names  =  None  _ )  [ [source]
](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L2489-L2626) #

    

Set the table styles included within the ` <style> ` HTML element.

This function can be used to style the entire table, columns, rows or specific
HTML selectors.

Parameters  :

    

**table_styles** list or dict

    

If supplying a list, each individual table_style should be a dictionary with `
selector  ` and ` props  ` keys. ` selector  ` should be a CSS selector that
the style will be applied to (automatically prefixed by the tableâs UUID)
and ` props  ` should be a list of tuples with ` (attribute,  value)  ` . If
supplying a dict, the dict keys should correspond to column names or index
values, depending upon the specified  axis  argument. These will be mapped to
row or col CSS selectors. MultiIndex values as dict keys should be in their
respective tuple form. The dict values should be a list as specified in the
form with CSS selectors and props that will be applied to the specified row or
column.

**axis** {0 or âindexâ, 1 or âcolumnsâ, None}, default 0

    

Apply to each column ( ` axis=0  ` or ` 'index'  ` ), to each row ( ` axis=1
` or ` 'columns'  ` ). Only used if  table_styles  is dict.

**overwrite** bool, default True

    

Styles are replaced if  True  , or extended if  False  . CSS rules are
preserved so most recent styles set will dominate if selectors intersect.

**css_class_names** dict, optional

    

A dict of strings used to replace the default CSS classes described below.

New in version 1.4.0.

Returns  :

    

Styler

    

See also

[ ` Styler.set_td_classes  `
](pandas.io.formats.style.Styler.set_td_classes.html#pandas.io.formats.style.Styler.set_td_classes
"pandas.io.formats.style.Styler.set_td_classes")

    

Set the DataF