df.groupby([df['Date/Time'].dt.year, df['Date/Time'].dt.hour]).mean()
res = df.groupby([df['Date/Time'].dt.year, df['Date/Time'].dt.hour]).mean()
res.index.names = ['year', 'hour']
Getting the average of a certain hour on weekdays over several years in a pandas dataframe