"Show me the top ten" is the most requested report in any company, and it is a group, a sort and a head.
Write top_products(df, n).
df has columns product and revenue, with several rows per product. Return a DataFrame with columns product and total_revenue, holding the n products with the highest total revenue, highest first.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in