pandas.io.formats.style.Styler.highlight_null

Styler.highlight_null(self, null_color: str = 'red', subset: Union[Hashable, NoneType, Sequence[Union[Hashable, NoneType]]] = None) → 'Styler'[source]

Shade the background null_color for missing values.

Parameters
null_colorstr, default ‘red’
subsetlabel or list of labels, default None

A valid slice for data to limit the style application to.

New in version 1.1.0.

Returns
selfStyler