Getting the average of a certain hour on weekdays over several years in a pandas dataframe
问题 I have an hourly dataframe in the following format over several years: Date/Time Value 01.03.2010 00:00:00 60 01.03.2010 01:00:00 50 01.03.2010 02:00:00 52 01.03.2010 03:00:00 49 . . . 31.12.2013 23:00:00 77 I would like to average the data so I can get the average of hour 0, hour 1... hour 23 of each of the years. So the output should look somehow like this: Year Hour Avg 2010 00 63 2010 01 55 2010 02 50 . . . 2013 22 71 2013 23 80 Does anyone know how to obtain this in pandas? 回答1: Note: