Average Age
people has columns name and age. Return the average age as a float.
Example 1
people {"name":["a","b","c"],"age":[20,25,30]}
returns 25.0
75 / 3 = 25.0.
Constraints
- At least one row
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Biggest Daily JumpBeginner
- Cap the SalariesBeginner
- Carry the Last ValueBeginner
- Colour TallyBeginner
- Column StatisticsBeginner
- Column TotalBeginner
- Correlation of ColumnsBeginner
- Count Missing ValuesBeginner