I tried several ways, I have a big DataFrame with lots of categories and each has a duration several times like this one. I need to sum them all. In excel this is easy, in python I always get errors.
[In]
dfMDA = df.loc[df['Category'].str.contains("MDA")]
dfMDA["Duration"] = pd.to_datetime(dfMDA["Duration"], format='%H:%M:%S')
dfMDA['Duration']
[Out]
2 1900-01-01 01:27:40
40 1900-01-01 00:03:45
52 1900-01-01 00:01:54
Name: Duration, dtype: datetime64[ns]
.sum() isnt working; I need the result of all these timestamps (result should be 01:33:19).