![]() |
VOOZH | about |
Pandas Series.dt.minute attribute returns a NumPy array containing the minutes of the DateTime in the underlying data of the given series object.
Output :
Syntax: Series.dt.minute
Parameter: None
Returns: NumPy array containing minutes
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:
Use the Series.dt.minute attribute to return the minutes of the DateTime in the underlying data of the given Series object.
Output :
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.