Styler.highlight_null(color=None, subset=None, props=None, null_color=_NoDefault.no_default)[source]#

Highlight missing values with a style.

colorstr, default ‘yellow’

Background color to use for highlighting.

New in version 1.5.0.

subsetlabel, array-like, IndexSlice, optional

A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to before applying the function.

New in version 1.1.0.

propsstr, default None

CSS properties to use for highlighting. If props is given, color is not used.

New in version 1.3.0.

null_colorstr, default None

The background color for highlighting.

Deprecated since version 1.5.0: Use color instead. If color is given null_color is not used.


See also


Highlight the maximum with a style.


Highlight the minimum with a style.


Highlight a defined range with a style.


Highlight values defined by a quantile with a style.