Series.dt
can be used to access series values as datetimelike and return multiple properties. Series.dt.minute
Pandas Series.dt.minute
returns an empty array containing the minutes of the date and time in base data of this series object.
Syntax: Series.dt.minute
Parameter: None
Returns: numpy array
Example # 1: Use the Series.dt.minute attribute
to return the minutes of the date and time in the underlying data of this Series object.

Output:
We will now use the Series.dt.minute
attribute to return the date and time minutes in the underlying data of this Series object.
# return minutes
result
=
sr.dt.minute
# print the result
print
(result)
Output:
As we can see from the output, the attribute Series.dt.minute
successfully accessed and returned the datetime minutes in the underlying data of the given series object.
Example # 2: Use the Series attribute .dt.minute
to return the date and time minutes in the underlying data of this Series object.

Output:
Now we will use the Series.dt.minute
attribute to return the minutes of the date and time in the underlying data of this Series object.

Output:
As we can see from the output, the Series.dt.minute
attribute successfully accessed and returned the datetime minutes in the underlying data this series object.
As the title promises, this book will introduce you to one of the world’s most popular programming languages: Python. It’s aimed at beginning programmers as well as more experienced programmers wh...
23/09/2020
A ProblemSolver’s Guide to Building RealWorld Intelligent Systems. Data is the new oil and Machine Learning is a powerful concept and framework for making the best out of it. In this age of aut...
23/09/2020
Taking into account the development of modern programming, especially the emerging programming languages that reflect modern practice, Numerical Programming: A Practical Guide for Scientists and...
08/08/2021
Why this Book? Hadoop has been the base for most of the emerging technologies in today’s big data world. It changed the face of distributed processing by using commodity hardware for large data set...
10/07/2020