as.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_index  #

Styler.  format_index  (  _ formatter  =  None  _ , _ axis  =  0  _ , _ level
=  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#L1215-L1401) #

    

Format the text display value of index labels or column headers.

New in version 1.4.0.

Parameters  :

    

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

    

Object to define how values are displayed. See notes.

**axis** {0, âindexâ, 1, âcolumnsâ}

    

Whether to apply the formatter to the index or column headers.

**level** int, str, list

    

The level(s) over which to apply the generic formatter.

**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  ` .

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

    

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

**thousands** str, optional, default None

    

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

**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. Escaping is done before ` formatter  ` .

**hyperlinks** {âhtmlâ, âlatexâ}, optional

    

Convert string patterns containing [ https:// ](https://) , [ http://
](http://) , [ ftp:// ](ftp://) or www. to HTML <a> tags as clickable URL
hyperlinks if âhtmlâ, or LaTeX href commands if âlatexâ.

Returns