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.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.export  #

Styler.  export  (  )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L2151-L2207) #

    

Export the styles applied to the current Styler.

Can be applied to a second Styler with ` Styler.use  ` .

Returns  :

    

dict

    

See also

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

    

Set the styles on the current Styler.

` Styler.copy  `

    

Create a copy of the current Styler.

Notes

This method is designed to copy non-data dependent attributes of one Styler to
another. It differs from ` Styler.copy  ` where data and data dependent
attributes are also copied.

The following items are exported since they are not generally data dependent:

>   * Styling functions added by the ` apply  ` and ` map  `
>
>   * Whether axes and names are hidden from the display, if unambiguous.
>
>   * Table attributes
>
>   * Table styles
>
>

The following attributes are considered data dependent and therefore not
exported:

>   * Caption
>
>   * UUID
>
>   * Tooltips
>
>   * Any hidden rows or columns identified by Index labels
>
>   * Any formatting applied using ` Styler.format  `
>
>   * Any CSS classes added using ` Styler.set_td_classes  `
>
>

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.to_string
](pandas.io.formats.style.Styler.to_string.html "previous page") [ next
pandas.io.formats.style.Styler.use  __
](pandas.io.formats.style.Styler.use.html "next page")

__ On this page

  * ` Styler.export()  `

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

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