Create Pandas Time Serie from multiple Time Series with Python -
i have multiple time series :
date 2015-10-10 01:00:00 955.0 2015-10-11 01:00:00 702.0 2015-10-12 01:00:00 597.0 2015-10-13 01:00:00 516.0 2015-10-14 01:00:00 554.0 date 2015-10-10 02:00:00 972.0 2015-10-11 02:00:00 646.0 2015-10-12 02:00:00 529.0 2015-10-13 02:00:00 554.0 2015-10-14 02:00:00 540.2 date 2015-10-10 03:00:00 964.0 2015-10-11 03:00:00 707.0 2015-10-12 03:00:00 557.0 2015-10-13 03:00:00 515.0 2015-10-14 03:00:00 437.2
what want create ordred , unique time serie these time series have result :
date 2015-10-10 00:00:00 622.0 2015-10-10 01:00:00 955.0 2015-10-10 02:00:00 972.0 2015-10-10 03:00:00 964.0 2015-10-10 04:00:00 914.0 ... 2015-10-11 00:00:00 923.0 2015-10-11 01:00:00 955.0 2015-10-11 02:00:00 646.0
you can use concat
concatenate row-wise , call sort_index()
on result achieve result want:
pd.concat(list_of_series).sort_index()
Comments
Post a Comment