pandas.Series.cumsum

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

Cumulative sum of values. Preserves locations of NaN values

Extra parameters are to preserve ndarray interface.

skipna : boolean, default True
Exclude NA/null values

cumsum : Series