* [ pandas.io.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  #

_ class  _ pandas.io.formats.style.  Styler  (  _ data  _ , _ precision  =
None  _ , _ table_styles  =  None  _ , _ uuid  =  None  _ , _ caption  =  None
_ , _ table_attributes  =  None  _ , _ cell_ids  =  True  _ , _ na_rep  =
None  _ , _ uuid_len  =  5  _ , _ decimal  =  None  _ , _ thousands  =  None
_ , _ escape  =  None  _ , _ formatter  =  None  _ )  [ [source]
](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L129-L3731) #

    

Helps style a DataFrame or Series according to the data with HTML and CSS.

Parameters  :

    

**data** Series or DataFrame

    

Data to be styled - either a Series or DataFrame.

**precision** int, optional

    

Precision to round floats to. If not given defaults to `
pandas.options.styler.format.precision  ` .

Changed in version 1.4.0.

**table_styles** list-like, default None

    

List of {selector: (attr, value)} dicts; see Notes.

**uuid** str, default None

    

A unique identifier to avoid CSS collisions; generated automatically.

**caption** str, tuple, default None

    

String caption to attach to the table. Tuple only used for LaTeX dual
captions.

**table_attributes** str, default None

    

Items that show up in the opening ` <table> ` tag in addition to automatic (by
default) id.

**cell_ids** bool, default True

    

If True, each cell will have an ` id  ` attribute in their HTML tag. The ` id
` takes the form ` T_<uuid>_row<num_row>_col<num_col> ` where ` <uuid> ` is
the unique identifier, ` <num_row> ` is the row number and ` <num_col> ` is
the column number.

**na_rep** str, optional

    

Representation for missing values. If ` na_rep  ` is None, no special
formatting is applied, and falls back to ` pandas.options.styler.format.na_rep
` .

**uuid_len** int, default 5

    

If ` uuid  ` is not specified, the length of the ` uuid  ` to randomly
generate expressed in hex characters, in range [0, 32].

**decimal** str, optio