pandas.core.groupby.DataFrameGroupBy.cummax

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

Cumulative max for each group.

Returns
Series or DataFrame

See also

Series.groupby
DataFrame.groupby