I have a pandas.DataFrame called df with
>>> type(df.index)
<class 'pandas.core.indexes.datetimes.DatetimeIndex'>
How can I assert that the index is equally spaced? I.e. I am looking for a boolean attribute of df or of df.index which is
True, if the distance between two consecutive indices is always the same, for example always 10 minutesFalse, otherwise.
Is there an in-built attribute or function accomplishing this?