dataframe是一个以时间为index,然后是只有一列数据的dataframe或者series df.resample('1H', how='ohlc', axis=0, fill_method='bfill')