[ 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.format  #

Styler.  format  (  _ formatter  =  None  _ , _ subset  =  None  _ , _ na_rep
=  None  _ , _ precision  =  None  _ , _ decimal  =  '.'  _ , _ thousands  =
None  _ , _ escape  =  None  _ , _ hyperlinks  =  None  _ )  [ [source]
](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style_render.py#L944-L1213) #

    

Format the text display value of cells.

Parameters  :

    

**formatter** str, callable, dict or None

    

Object to define how values are displayed. See notes.

**subset** label, array-like, IndexSlice, optional

    

A valid 2d input to  DataFrame.loc[<subset>]  , or, in the case of a 1d input
or single key, to  DataFrame.loc[:, <subset>]  where the columns are
prioritised, to limit ` data  ` to _before_ applying the function.

**na_rep** str, optional

    

Representation for missing values. If ` na_rep  ` is None, no special
formatting is applied.

**precision** int, optional

    

Floating point precision to use for display purposes, if not determined by the
specified ` formatter  ` .

New in version 1.3.0.

**decimal** str, default â.â

    

Character used as decimal separator for floats, complex and integers.

New in version 1.3.0.

**thousands** str, optional, default None

    

Character used as thousands separator for floats, complex and integers.

New in version 1.3.0.

**escape** str, optional

    

Use âhtmlâ to replace the characters ` & ` , ` < ` , ` > ` , ` '  ` , and
` "  ` in cell display string with HTML-safe sequences. Use âlatexâ to
replace the characters ` & ` , ` %  ` , ` $  ` , ` #  ` , ` _  ` , ` {  ` , `
}  ` , ` ~  ` , ` ^  ` , and ` \  ` in the cell display string with LaTeX-safe
sequences. Use âlatex-mathâ to replace the characters the same way as in
âlatexâ mode, except for math substrings, which either are surrounded by
two characters ` $  ` or start with the character ` \(  ` and end with ` \)  `
. Escaping is done before ` fo