Programming problem. Please upload a jupyter notebook file ….

Questions

Prоgrаmming prоblem. Pleаse uplоаd a jupyter notebook file .ipynb (-2 if html or other format) The file 'purchase.csv' contains ~1000 ecommerce purchases. Each row is a record of a purchase containing the price, qty ordered, order date, etc. Write a function that returns a dataframe with the total revenue for each product category and the rank, sorted in descending order by Rank. Use “min” method to break ties.