I have a pandas dataframe with several time series ta, tb etc. below and corresponding measurements, given here by av, bv....
ta = np.arange(0, 1, 0.01)
av = np.random.rand(ta.shape[0], 1).flatten()
tb = np.arange(0, 1, 0.015)
bv = np.random.rand(tb.shape[0], 1).flatten()
d = {'ta': ta, 'a_val': av, 'tb':tb, 'b_val':bv}
pd.DataFrame(dict([ (k,pd.Series(v)) for k,v in d.items() ]))
The time series all run from 0 to 1. I want to stretch and interpolate the shorter data so that they have the same number of rows.
I was going to use pd.resample() but it seems the data has to be in the date/time format for that.