← All Python interview questions
Flag transaction outliers with the IQR rule
MediumStatisticsHDFCRazorpay
Risk wants transactions flagged when they fall outside the classic 1.5 x IQR fence.
Write flag_outliers(values) that takes a list of numbers and returns a list of the values that are below Q1 - 1.5*IQR or above Q3 + 1.5*IQR, in their original order.
More Statistics questions
Practising alone only goes so far — our live cohorts pair Python and Pandas depth with dashboards, agentic analytics projects and mock interviews.
Explore the program