Calculate the total revenue (quantity * price) for each product.
DataFrame df with columns: date, product, quantity, price, region
revenue column (quantity * price)Ready 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.