pandas.
infer_freq
Infer the most likely frequency given the input index. If the frequency is uncertain, a warning will be printed.
If passed a Series will use the values of the series (NOT THE INDEX).
None if no discernible frequency.
If the index is not datetime-like.
If there are fewer than three values.