Loading…
Group df_order_items by product_id, select the quantity column, and call .agg([mean, max, min]) to get the mean, max, and min in one aggregated table (columns in that order). Then print the table. This helps see typical quantity per product, plus extremes.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.