Katkat

Analyze Recent Orders Dataset with Python/pandas

RobloxData Scientist · Onsite

Last updated

This question evaluates proficiency in data manipulation and aggregation using Python/pandas, including extracting per-user maximums, computing overall summary statistics, and producing daily aggregates from time-stamped records.

orders

order_iduser_idpricecreated_at
110120.52024-01-01
210135.02024-01-03
310215.02024-01-02
410350.02024-01-04
510225.02024-01-05
Scenario

E-commerce analytics team needs quick Python insights on recent orders dataset.

Question

Using Python/pandas: a) For every user, return the order_id with the maximum price. b) Compute the overall average order price. c) For each calendar day, report total orders and average price.

Hints

Think groupby, idxmax, agg, reset_index.