Trouble averaging specific rows in Pandas DataFrame
问题 I currently have the following two DataFrames: raw_data= Time F1 F2 F3 2082-05-03 00:00:59.961599999 -83.769997 29.430000 29.400000 2082-05-03 00:02:00.009600000 -84.209999 28.940001 28.870001 2082-05-03 00:02:59.971200000 -84.339996 28.280001 28.320000 outage_by_timeofday_num = (made from raw_data) (ignore dashes - they are for alignment only) F1 F2 F3 Time 2082-05-03 00:00:00 0 1 1 2082-05-03 01:00:00 0 1 1 I've been able to sort and average the raw_data DataFrame by times of the day using