Challenge 1: Sum of Plays per Country (Trivial)
Explore how to use Pandas grouping to aggregate data by country. Learn to apply groupby and sum functions to calculate total plays per country and return results as a dictionary.
We'll cover the following...
We'll cover the following...
Problem definition
Your music analyst is interested in finding the sum of plays of artists by country. Can you return the total number of plays for each country?
Expected output
A Python dictionary where every key is the country name, and the value is the sum of plays of artists originating ...