Amazon: Compute each seller's return rate for the quarter and flag the sellers above the review threshold.
The Marketplace Trust team reviews third-party sellers whose return rate is above 10% in a quarter. They have exported the orders, returns and seller list for the first quarter and asked for the return rate of each seller for orders placed in January through March, and the list of sellers to review.
amazon_marketplace_orders.csv has one row per order:
order_idseller_idorder_dateitem_priceamazon_marketplace_returns.csv has one row per return record:
return_idorder_id - the order the return belongs toreturn_datesource - the system that recorded the return: customer_app or warehouse_scanrefund_amountamazon_marketplace_sellers.csv has one row per seller:
seller_idseller_namecategoryYou can solve this in Python, SQL, or a mix of both — StrataScratch notebooks support both languages in the same notebook.
Assume this data comes directly from the order and returns systems and hasn't been cleaned, so review it carefully before relying on the numbers. When something looks off, work out what it is and decide how to handle it; when a definition or a final decision is genuinely ambiguous, choose a reasonable option and explain why. There's often more than one valid way to compute a result, so explain the approach you take and the reasoning behind your choices.
What's assessed: your results, and how clearly you explain what you see in the data and justify the choices you make.