Create a comprehensive sales report DataFrame showing per-product metrics.
DataFrame df with columns: date, product, quantity, price, region
total_qty: sum of quantitytotal_revenue: sum of (quantity * price)avg_qty_per_sale: mean of quantityReady to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.