VOOZH about

URL: https://www.geeksforgeeks.org/pandas/pandas-series-dt-freq/

⇱ Pandas Series dt.freq | Retrieve Frequency of Pandas Time Series - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pandas Series dt.freq | Retrieve Frequency of Pandas Time Series

Last Updated : 11 Jul, 2025

Pandas dt.freq attribute returns the time series frequency applied on the given series object if any, else it returns None.

Examples

Output

👁 output of dt.freq method

Syntax

Syntax: Series.dt.freq 

Parameter: None 

Returns: frequency

How to Find Frequency of Time Series Data in Pandas

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:

Example:

Use the Series.dt.freq attribute to find the frequency of the underlying DateTime based data in the given series object.

Output :

👁 datetime series created

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.

Comment

Explore