numpy.cumsum# numpy.cumsum(a, axis=None, dtype=None, out=None)[source]# Return the cumulative sum of the elements along a given axis. Parameters: aarray_likeInput array. axisint, optionalAxis along which the cumulative sum is computed. The default (None) is to compute the cumsum over the flattened array. dtypedtype, optionalType of the returned array and of the accumulator in which the elements ar