I have a Pandas dataframe with a Duration column with contains durations as text with the following format. Some strings have "Days" added at the beginning where some of them just have the hour minute and second information:
df =
Duration
0 16h:48m:31s
1 0h:02m:49s
2 1d 3h:57m:27s
...
I want to convert this into a numeric format in the units of Hours. How would you approach this problem? Thanks in advance.