pandas.io.formats.style.Styler.clear#

Styler.clear()[source]#

Reset the Styler, removing any previously applied styles.

Returns None.

See also

Styler.apply

Apply a CSS-styling function column-wise, row-wise, or table-wise.

Styler.export

Export the styles applied to the current Styler.

Styler.map

Apply a CSS-styling function elementwise.

Styler.use

Set the styles on the current Styler.

Examples

>>> df = pd.DataFrame({"A": [1, 2], "B": [3, np.nan]})

After any added style:

>>> df.style.highlight_null(color="yellow")  

Remove it with:

>>> df.style.clear()  

Please see: Table Visualization for more examples.