pandas-resample按时间聚合实例 如下所示:importpandasaspd#如果需要的话,需将df中的date列转为datetimedf.date=pd.to_datetime(df.date,for 时间聚合