AttributeError: ‘Timedelta’ object has no attribute ‘minutes’

df['minutes'] = df['time'].dt.total_seconds()/60

Here is what the above code is Doing:
1. We’re creating a new column called ‘minutes’ in our dataframe.
2. We’re using the .dt.total_seconds() method to convert the time column to seconds.
3. We’re dividing the total seconds by 60 to convert the seconds to minutes.