![enter image description here](https://i.stack.imgur.com/WXWHu.png)

I am trying to read the column `total_time` and sum up the times where the user is the same meaning `'name 1' = 03:30 + 04:00` and so on, I am trying to use pandas and I have manage to get the data separated, but when I try to take the `total_time`, as this is an object, I can not just `sum` it up, so I have tried to change the format of this object to a `datetime` object, but I haven't been able to do it.

```
format_time="%H:%M"

user1 = df.loc[df['user']== "name 1"]

user1['hora']=datetime.strptime((user1['total_time']),format_time)

```

I have tried this and it gives me an error

```
AttributeError: module 'datetime' has no attribute 'strptime'

```