Editor

Best House on Average

Data questions · Intermediate · about 8 min

house_points.csv has each student's name, house and the points they earned this term. The houses have different numbers of students, so compare the average points per student. Set answer to the name of the house with the highest average, exactly as in the file.

Example

The first lines of house_points.csv:

student,house,points
Aiden,Red,12
Bianca,Blue,18
house_points.csv · 20 rows
studenthousepoints
AidenRed12
BiancaBlue18
ChiragGreen15
DaliaYellow11
EmekaRed14
FionaBlue17
GabeGreen10
HemaYellow16

First 8 of 20 rows.

import pandas as pd
df = pd.read_csv("house_points.csv")
answer = None
The solution opens after your first Check.