Counting number of consecutive occurences of numbers in a series
it helps some times I've a series (1 dimension array) of numbers, say 0, 0,
1, 1, 1, 0, 1, 1, 1, 1, ... , Here's another with NumPy, specifically
making use of array-slicing -
Date : January 02 2021, 06:48 AM , By : Ashley