pandas.core.groupby.DataFrameGroupBy.cummax

DataFrameGroupBy.cummax(self, axis=0, **kwargs)[source]

Cumulative max for each group.

Returns
Series or DataFrame

See also

Series.groupby
DataFrame.groupby