modin.pandas.TimedeltaIndex.inferred_freq

property TimedeltaIndex.inferred_freq: NoReturn[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/utils/error_message.py#L85-L94)

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

Returns None if it can’t autodetect the frequency.

Examples

>>> idx = pd.to_timedelta(["0 days", "10 days", "20 days"])  
>>> idx  
TimedeltaIndex(['0 days', '10 days', '20 days'],
               dtype='timedelta64[ns]', freq=None)
>>> idx.inferred_freq  
'10D'
Copy
Language: English