ormats.style.Styler.set_properties.html)
    * [ 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 
  * [ 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.use  #

Styler.  use  (  _ styles  _ )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L2209-L2274) #

    

Set the styles on the current Styler.

Possibly uses styles from ` Styler.export  ` .

Parameters  :

    

**styles** dict(str, Any)

    

List of attributes to add to Styler. Dict keys should contain only:

    

  * âapplyâ: list of styler functions, typically added with ` apply  ` or ` map  ` . 

  * âtable_attributesâ: HTML attributes, typically added with ` set_table_attributes  ` . 

  * âtable_stylesâ: CSS selectors and properties, typically added with ` set_table_styles  ` . 

  * âhide_indexâ: whether the index is hidden, typically added with ` hide_index  ` , or a boolean list for hidden levels. 

  * âhide_columnsâ: whether column headers are hidden, typically added with ` hide_columns  ` , or a boolean list for hidden levels. 

  * âhide_index_namesâ: whether index names are hidden. 

  * âhide_column_namesâ: whether column header names are hidden. 

  * âcssâ: the css class names used. 

Returns  :

    

Styler

    

See also

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

    

Export the non data dependent attributes to the current Styler.

Examples

    
    
    >>> styler = pd.DataFrame([[1, 2], [3, 4]]).style
    >>> styler2 = pd.DataFrame([[9, 9, 9]]).style
    >>> styler.hide(axis=0).highlight_max(axis=1)  
    >>> export = styler.export()
    >>> styler2.use(export)  
    

[ __ previous  pandas.io.formats.style.Styler.export
](pandas.io.formats.style.Styler.export.html "previous page") [ next  Plotting
__ ](../plotting.html "next page")

__ On this page

  * ` Styler.use()  `

[ __ Show Source
](../../_sources/reference/api/pandas.io.formats.style.Styler.use.rst.txt)

© 2024, pandas via [ NumFOCUS, Inc. ](https://numf