FunctionRacerProblemsRace

Teams Above Average

EasypandasPython

players has columns name, team and points. Find the average points of all players together. Return a list of the teams whose own average is strictly higher than that overall average, in alphabetical order.

Example 1

players {"name":["a","b","c","d"],"team":["x","x","y","y"],"points":[10,20,1,5]}
returns ["x"]

Overall average is 9; x averages 15.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems