I have the following Pandas Series:
s = pd.Series([False, True, True, False, True, True, True, False, True])
How can I get a list of tuples that each tuple represents the start and end index of continuous True intervals. For the above snippet the expected result would be:
[(1, 2), (4, 6), (8, 8)]