我想按1分钟间隔分组,但是,一些数据读取的时间戳将是5分钟间隔。该组是否会自动忽略5分钟的间隔数据,还是应该删除5分钟的间隔记录?
grouped_minutely_id = df_sample.set_index('captureTime', drop=False, inplace=False)
grouped_minutely_id = grouped_minutely_id.groupby([pd.Grouper(freq='1Min'), 'id'])
id captureTime sid occ power temp
3903 6/26/17 6:50 506 1.08E+17 21.48 73.68
3906 6/26/17 6:50 461 0 1.2 69.36
3923 6/26/17 6:51 461 9.62E+11 8.64 70.8