Pandas OHLC aggregation on OHLC data
Pandas OHLC aggregation on OHLC data Question: I understand that OHLC re-sampling of time series data in Pandas, using one column of data, will work perfectly, for example on the following dataframe: >>df ctime openbid 1443654000 1.11700 1443654060 1.11700 … df[‘ctime’] = pd.to_datetime(df[‘ctime’], unit=’s’) df = df.set_index(‘ctime’) df.resample(‘1H’, how=’ohlc’, axis=0, fill_method=’bfill’) >>> open high low …