numpy.nancumsum()
numpy.nancumsum
-
numpy.nancumsum(a, axis=None, dtype=None, out=None)
[source] -
Return the cumulative sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. The cumulative sum does not change when NaNs are encountered and leading NaNs are replaced by zeros.
Zeros are returned for slices that are all-NaN or empty.
New in version 1.12.0.
Parameters: a : array_l