ndarray.cumsum

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

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