A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.highlight_null.html below:

pandas.io.formats.style.Styler.highlight_null — pandas 2.3.1 documentation

pandas.io.formats.style.Styler.highlight_null#
Styler.highlight_null(color='red', subset=None, props=None)[source]#

Highlight missing values with a style.

Parameters:
colorstr, default ‘red’

Background color to use for highlighting.

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.

propsstr, default None

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

Returns:
Styler

Examples

>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, np.nan]})
>>> df.style.highlight_null(color='yellow')  

Please see: Table Visualization for more examples.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4