I have a dataframe or list of tuples, whatever, with boolean column. I need to find all sequences with length 4 like [1,0,1,0] and [0,1,0,1]