I have a series like that:
s = pd.DataFrame({\'ts\': [1, 2, 3, 6, 7, 11, 12, 13]}) s ts 0 1 1 2 2 3 3 6 4 7 5 11 6 12 7 13