FunctionRacerProblemsRace

Column Statistics

BeginnerpandasPython

df has a numeric column x. Return a dictionary with the keys "min", "max" and "mean" holding the smallest value, the largest value and the average of x.

Example 1

df {"x":[2,4,9]}
returns {"min":2,"max":9,"mean":5.0}

min 2, max 9, mean 5.

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