pandas.io.formats.style.Styler.highlight_null
pandas 3.1.1 · Styling · method
Style cells that hold missing values.
Call syntax
Styler.highlight_null(color='red', subset=None, props=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
color |
Optional Positional or keyword Default 'red' |
str Choose the color or colors for the plot or styled cells. |
subset |
Optional Positional or keyword Default None |
label, array-like, IndexSlice Restrict the operation to these labels instead of considering the whole object. |
props |
Optional Positional or keyword Default None |
str Supply CSS property declarations or the styles applied to matching cells. |
Returns
Styler