method
ndarray.
cumsum
Return the cumulative sum of the elements along the given axis.
Refer to numpy.cumsum for full documentation.
numpy.cumsum
See also
equivalent function