PANDAS membuat rata -rata per grup
df.groupby("ColumnNameOfGroups")["ColumnNameOfWhatToAvg"].mean()
Arno Deceuninck
df.groupby("ColumnNameOfGroups")["ColumnNameOfWhatToAvg"].mean()