awkward
awkward copied to clipboard
ak.cumsum
Description of new feature
An awkward-array equivalent of np.cumsum seems useful.
For example, for a : N * var * whatever, ak.local_index(a, axis=1) could be implemented as ak.cumsum(ak.ones_like(a), axis=1) - 1.
Yes, cumsum is a useful function (and we did think about adding it, see #1362). I'll leave this open, as we should get around to it.