SpinTheMic
Pro

Interview practice question

Flagging outliers within each group

Data Analyst · Python and Pandas · Intermediate

You want to flag unusually large orders within each product category, since normal order sizes differ by category. How do you do it in pandas?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Group-wise statistics with transform.
  • z-score per group or IQR per group.
  • Flag beyond threshold.
  • Robust: median and MAD.
  • Review flagged rows.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics