I have the following dataframe column:

I need to convert object string data from the csv column into total seconds.
Example: 10m -> 600s
I tried this code:
df.duration = str(datetime.timedelta(df['duration']))
But the following error is displayed
TypeError: unsupported type for timedelta days component: Series