pandas.infer_freq
pandas 3.1.1 · General functions · function
Infer a regular frequency from dates or timedeltas when the observations permit it.
Call syntax
pd.infer_freq(index)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
index |
Required Positional or keyword |
DatetimeIndex, TimedeltaIndex, Series or array-like Supply row labels or control how existing row labels are used. |
Returns
str or None