Max per Column
Every column of df holds numbers. Return a dictionary mapping each column name to the largest value in that column.
Example 1
df {"a":[1,7,3],"b":[10,2,5]}
returns {"a":7,"b":10}
a peaks at 7, b at 10.
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
- Missing Price NamesBeginner
- Names in CityBeginner
- Pick Two ColumnsBeginner
- Rename ColumnsBeginner
- Running Sales TotalBeginner
- Sorted Unique ValuesBeginner
- Swap the LabelsBeginner
- Table ShapeBeginner