data/orders.csv is a real file in your working directory. Read it and return total completed revenue per customer.
The file is not clean. It contains cancelled orders, a refund with a negative total, a row with no customer id, and one order that was written twice.
Return a Series indexed by customer_id, sorted by revenue descending. Only completed orders count.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in