modin.pandas.DatetimeIndex.freqstr

property DatetimeIndex.freqstr: 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)

Return the frequency object as a string if it’s set, otherwise None.

Examples

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00"], freq="D")
>>> idx.freqstr  
'D'
Copy

The frequency can be inferred if there are more than 2 points:

>>> idx = pd.DatetimeIndex(["2018-01-01", "2018-01-03", "2018-01-05"],
...                        freq="infer")
>>> idx.freqstr  
'2D'
Copy
Language: English