Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Grouping
15. Exercise 1
Summary

Instruction

Well done! When you work with real data, you will often group your rows multiple times by various columns to calculate different statistics. That's why we should practice that a bit more.

Exercise

What is the best movie rating in each genre? Group all movies by genre, and then use the max() function.

Stuck? Here's a hint!

Start with:

movies.groupby('genre')

Then use the max() function on movie rating.