Pandas erzeugen durchschnittlich pro Gruppe
df.groupby("ColumnNameOfGroups")["ColumnNameOfWhatToAvg"].mean()
Arno Deceuninck
df.groupby("ColumnNameOfGroups")["ColumnNameOfWhatToAvg"].mean()