Open
Description
When wanting the convert the number of elements per 'bin' to a slice it could be useful to be able to prepend a zero to the result of cumsum
. NumPy allows this in its implementation of ediff1d
(https://docs.scipy.org/doc/numpy/reference/generated/numpy.ediff1d.html)