highlight_max_min¶
-
hhpy.ipython.
highlight_max_min
(df: pandas.core.frame.DataFrame, max_color: str = 'xkcd:cyan', min_color: str = 'xkcd:light red')[source]¶ highlights the largest and smallest value in each column of a pandas DataFrame
Parameters: - df – pandas DataFrame
- max_color – color used for highlighting largest value
- min_color – color used for highlighting smallest value
Returns: the pandas DataFrame with the style applied to it