I have got a time column like this:
df = pd.DataFrame({'time': {0: '1 h 50 min', 1: '50 min', 2: '2 h 3 min', 3: '3 min'}})
time
0 1 h 50 min
1 50 min
2 2 h 3 min
3 3 min
I want the information in seconds like:
time
6600
3000
7380
180
I was trying to use regex and eval to evaluate the time in seconds but was not successful what's the best possible way to achieve this?