InterviewStack.io LogoInterviewStack.io

Data Cleaning & Handling Missing Values Questions

Understand common data quality issues: missing values (NaN, null), duplicates, outliers, inconsistent formats, and incorrect data types. Know strategies for handling each: removing rows/columns with missing data, imputation (mean, median, forward fill), deduplication, type conversion, and validation checks. Understand the trade-offs of each approach.

MediumTechnical
138 practiced
Discuss the use of missingness indicator features (binary flags that a column was missing) and interactions between missingness and feature values in supervised models. When do these indicators improve predictive performance and when can they introduce bias or overfitting?
MediumTechnical
81 practiced
Write pytest-style unit tests for a function clean_numeric_column(series) that replaces empty strings and sentinel values (-999, 9999) with NaN and converts the Series to float. Include tests for edge cases: all sentinels, mixed types, already-float series, and preservation of the original index.
EasyTechnical
68 practiced
Define three quantitative metrics you would track to measure missingness and data quality over time (e.g., percent-missing per feature). For each metric provide sample alert thresholds, suggested aggregation window, and the remediation/workflow when thresholds are exceeded.
MediumTechnical
69 practiced
A dataset contains dates in mixed formats such as '2020-01-02', '01/02/2020', 'Jan 2 2020', '20200102', and 'NA'. Describe a robust Python approach to parse these into a single datetime column for 10M rows, including handling ambiguous day/month orders, error tokens, performance, and fallback rules.
MediumTechnical
67 practiced
Design an experiment to compare three imputation strategies (mean/mode single imputation, KNN imputation, and IterativeImputer) for a regression task. Describe data splits, metrics, how to capture imputation variability, and the statistical comparison you would run to choose the best method.

Unlock Full Question Bank

Get access to hundreds of Data Cleaning & Handling Missing Values interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.