I have a pandas series:
s = [3,7,8,0,0,0,6,12,0,0,0,0,0,8,5,0,2]
I want to find all the indices in which there is a start or an end of a zeros segment, where the number of zeros is more than 3 so here I want to get:
[8,12]
What is the best way to do so?
Thanks