pandas.io.formats.style.Styler.highlight_max¶
- Styler.highlight_max(subset=None, color='yellow', axis=0)[source]¶
Highlight the maximum by shading the background.
- Parameters
- subsetIndexSlice, default None
A valid slice for
data
to limit the style application to.- colorstr, 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
- selfStyler