I would like to convert a time series of a data frame into elapsed time. The format is Day.Hours[24hr]:MM:SS - it's not the typical DD:HH:MM:SS and I've hit a road block. I've added a few rows of the time series I have below. Starting at 0day 0hrs 0mins 1.1secs. Ending at 1day 17hrs 40mins 1.1secs. My desired output is a data frame column with 1.1, 10001.1, 20001.1, ...
Any ideas would be great (sometimes the sample rate is not exact so I would like to manipulate the time_data column to allow for any changes)?
Thanks everyone!
import pandas as pd
time_data = pd.DataFrame({'Time':[
'0.00:00:01.1',
'0.02:46:41.1',
'0.05:33:21.1',
'0.08:20:01.1',
'0.11:06:41.1',
'0.13:53:21.1',
'0.16:40:01.1',
'0.19:26:41.1',
'0.22:13:21.1',
'1.01:00:01.1',
'1.03:46:41.1',
'1.06:33:21.1',
'1.09:20:01.1',
'1.12:06:41.1',
'1.14:53:21.1',
'1.17:40:01.1']})