Autumn Offers - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Course Recap
8. Filtering, grouping and averaging at the same time
Final challenge
Summary

Instruction

Great! Now, let's combine a few techniques (filtering, grouping, and averaging) to find another interesting metric.

Exercise

Show the name of each neighborhood alongside the average overall_satisfaction. Sort the neighborhoods by the average in descending order. Only consider offers with more than 10 reviews.

Stuck? Here's a hint!

Use the functions in the following sequence:

1. Filter for reviews > 10.
2. Group by neighborhood.
3. Calculate average for overall_satisfaction.
4. Sort the values.

You can do all of that in a single line of code.