I have a two time series in separate pandas.dataframe
, the first one - series1
has less entries and different start datatime from the second - series2
:
index1 = pd.date_range(start='2020-06-16 23:16:00', end='2020-06-16 23:40:30', freq='1T')
series1 = pd.Series(range(len(index1)), index=index1)
index2 = pd.date_range('2020-06-16 23:15:00', end='2020-06-16 23:50:30', freq='30S')
series2 = pd.Series(range(len(index2)), index=index2)
How can I resample series2 to match the DatetimeIndex
of series1
?
mean
, get themin
,max
, ...? – Kotta