Amazon: Find which product category most often ships an order in more than one package.
Fulfillment is reviewing the cost of sending a single order out as several separate packages, and wants to know where it happens most before deciding what to consolidate. They have shared two exports from the fulfillment system: one of packages sent over the last three weeks, and one naming the product categories.
order_packages.csv has one row per package created by the fulfillment system:
package_idorder_idcategory_idorder_total_usdshipped_onpackage_statusis_replacement - whether the package was sent to replace an earlier oneproduct_categories.csv has one row per product category:
category_idcategory_nameYou 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 fulfillment system 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.
See the full interview round by round, with questions for each stage.