On this page
pandas.io.formats.style.Styler.highlight_max
Styler.highlight_max(self, subset=None, color='yellow', axis=0)
[source]-
Highlight the maximum by shading the background.
Parameters: -
subset : IndexSlice, default None
-
a valid slice for
data
to limit the style application to. -
color : str, default ‘yellow’
-
axis : {0 or ‘index’, 1 or ‘columns’, None}, default 0
-
apply to each column (
axis=0
or'index'
), to each row (axis=1
or'columns'
), or to the entire DataFrame at once withaxis=None
.
Returns: -
self : Styler
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.io.formats.style.Styler.highlight_max.html