Finds all runs of zero in an array
a (array) – Input array (assumed to be 1D)
array
A 2D array giving beginning and end (exclusive) of zero stretches in the input array.
np.array