I have a dataframe that looks like this
df
[output]:
date time
2020-02-28 00:30:45
2020-02-28 00:30:45
2020-03-09 00:21:06
2020-03-09 00:21:06
2020-03-09 00:21:06
with
df.time.dtype
[output]: dtype('<m8[ns]')
I want to extract the minutes in the time variable with the following command
df.time.dt.minute
but instead, I have this error
AttributeError: 'TimedeltaProperties' object has no attribute 'minute'
Does someone know how to fix this problem?