Grouping and Aggregating: The Split-Apply-Combine Strategy

Challenge Instructions

Expected Output

Code Editor

python
Hello! I'm here to assist you with the code. What seems to be the problem?
Why is my code throwing a type error on line 5?