pandas.Series.cummax

Series.cummax(axis=0, dtype=None, out=None, skipna=True)

Cumulative max of values. Preserves locations of NaN values

Extra parameters are to preserve ndarray interface.

skipna : boolean, default True
Exclude NA/null values

cummax : Series