---------------------------------------------------------------------------------------------------------------------------------------------------------------------
#统计数据的open,close,high,low的值 import pandas as pd index=pd.date_range('2020-2-3',periods=12,freq='T') #从2020-2-3开始,12个数,间隔为1分钟 s=pd.Series(range(12),index=index) #创建Series函数 s.resample('5min').ohlc()
open high low close 2020-02-03 00:00:00 0 4 0 4 2020-02-03 00:05:00 5 9 5 9 2020-02-03 00:10:00 10 11 10 11
标签:02,index,00,03,汇总,2020,65,pd,序列 From: https://www.cnblogs.com/988MQ/p/16929490.html