# Group by Country, sum the Revenue, and sort for the top 10 top_countries = df.groupby(‘Country’)[‘Revenue’].sum().sort_values(ascending=False).head(10) print(“\n — — Top 10 Countries by Revenue (GBP) — -”) print(top_countries)