'Want to use groupby & sort_values?

I have a data set with job titles, year, and salary. I want to find the top 5 highest paying jobs in each year (2011-2014), but I can't figure out how. Would I use the groupby function for that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source