def interpolate(ts, datetime_index):
    x = pd.concat([ts, pd.TimeSeries(index=datetime_index)])
return x.groupby(x.index).first().sort_index().fillna(method='ffill')[
    datetime_index]
Interpolating one time series onto another in pandas