modin.pandas.DatetimeIndex.inferred_freq

property DatetimeIndex.inferred_freq: NoReturn[source]

Tries to return a string representing a frequency generated by infer_freq.

Returns None if it can’t autodetect the frequency.

Examples

>>> idx = pd.DatetimeIndex(["2018-01-01", "2018-01-03", "2018-01-05"])
>>> idx.inferred_freq  
'2D'
Copy