runtime
437 / 500
question 437 Visualization & EDA · medium

Mark outlier rows for review

Write mark_outliers(table, column): return a new DataFrame with an extra boolean column outlier that is True for rows whose column value is outside the 1.5 × IQR fences (pandas' default quantiles; values exactly on a fence are not outliers). Rows with a missing value are not outliers. The caller's DataFrame must not change.

Functionmark_outliers(table, column)
Returnsa new DataFrame: the same rows and columns plus outlier

Loading your progress…

Mark outlier rows for review — Python practice · Runtime