VOOZH about

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

⇱ Pandas Series dt.minute | Extract Minute from DateTime Series in Pandas - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pandas Series dt.minute | Extract Minute from DateTime Series in Pandas

Last Updated : 11 Jul, 2025

Pandas Series.dt.minute attribute returns a NumPy array containing the minutes of the DateTime in the underlying data of the given series object.

Example

Output :

👁 dt.minute output

Syntax

Syntax: Series.dt.minute 

Parameter: None 

Returns: NumPy array containing minutes

How to Extract the Minute from a DateTime in Pandas Series

To extract the minutes from a DateTime object in the Pandas Series we use the dt.minute attribute of the Pandas library in Python.

Let us understand it better with an example:

Example:

Use the Series.dt.minute attribute to return the minutes of the DateTime in the underlying data of the given Series object.

Output :

👁 created datetime series

Now we will use the dt.minute attribute to return the minutes of the DateTime in the underlying data of the given Series object.

Output :

👁 minutes extracted from DateTime Series

As we can see in the output, the dt.minute attribute has successfully accessed and returned the minutes of the DateTime in the underlying data of the given series object.

Comment

Explore