I am trying to follow the example in the documentation of pandas to convert a DateTimeIndex to consecutive time. https://pandas.pydata.org/pandas-docs/version/0.24.2/user_gu