![]() |
VOOZH | about |
Pandas dt.freq attribute returns the time series frequency applied on the given series object if any, else it returns None.
Output
Syntax: Series.dt.freq
Parameter: None
Returns: frequency
To find the frequency of the time series we use dt.freq attribute of the Pandas library in Python.
Let us understand it with an example:
Use the Series.dt.freq attribute to find the frequency of the underlying DateTime based data in the given series object.
Output :
Now we will use the dt.freq attribute to find the frequency of the DateTime based data in the given series object.
Output :
👁 frequency of datetime series returned
As we can see in the output, the dt.freq attribute has successfully returned the frequency of the underlying DateTime based data in the given Series object.