时间索引按照周进行分组循环数据

tech2022-12-02  82

dev_df.index = pd.DatetimeIndex(dev_df.index) from pandas import Grouper dev_df['index'] = dev_df.index c = dev_df.groupby(Grouper(key='index',freq="W")) for w_date,w_dev_df in c:
最新回复(0)