I have time series with time stamps corresponding to timedeltas, but the actual time and date do not play a role. So I can assume some reference time point as a start for the time series.
ts = ref_time + pd.to_timedelta(dat["MILLISEC"], unit="ms")
dat.set_index(ts)
But I wonder if ref_time
really needs to be of type datetime.datetime
as I would prefer it to be of type datetime.time
. But than I cannot use it as an index for Pandas as it seems. Why is that?
Best regards!