NumPy

numpy.ndarray.cumsum

method

ndarray.cumsum(axis=None, dtype=None, out=None)

Return the cumulative sum of the elements along the given axis.

Refer to numpy.cumsum for full documentation.

See also

numpy.cumsum

equivalent function

Previous topic

numpy.ndarray.cumprod

Next topic

numpy.ndarray.diagonal