I have two daily series and I have to merge them into one hour series with the 1st series for the first 12 hours and the 2nd series for the remaining hours.
Is there a more efficient way instead of building a list manually and convert it to series? Thanks
a = pd.Series(np.random.rand(5), pd.date_range('2015-01-01', periods=5))
b = pd.Series(np.random.rand(5), pd.date_range('2015-01-01', periods=5))
c = an hourly series
possibly:
and,
ts.asfreq('H', method='ffill')
to have hourly frequency.