How do you identify impossible or invalid values and range violations during EDA?

Quick Overview

Asks how to find impossible values, invalid categories and range violations while exploring a dataset. Tests domain range checks, categorical validation, cross-field and date rules, type and unit problems, and turning these checks into repeatable validation.

How do you identify impossible or invalid values and range violations during EDA?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

How do you identify impossible or invalid values and range violations during exploratory data analysis (EDA)? ```hint Start from the rules Write down the rules the data has to obey in the real world, column by column and across columns, then compare what you observe against them. ``` ### What a Strong Answer Covers - Checking numeric columns against domain bounds - Checking categorical columns against the allowed set and for inconsistent spellings - Rules that span several columns or involve dates - Type, format and unit problems - Making the checks repeatable, and deciding what to do with the rows that fail ### Follow-up Questions - How do you tell an invalid value from a valid outlier? - What would you do with rows that fail a check: drop them, fix them, or set them to missing? - How would you spot placeholder values such as 999 or 1900-01-01 used to mean "unknown"? - How would you run these checks automatically every time new data arrives?

Overview: Asks how to find impossible values, invalid categories and range violations while exploring a dataset. Tests domain range checks, categorical validation, cross-field and date rules, type and unit problems, and turning these checks into repeatable validation.

General logo
General
Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

How do you identify impossible or invalid values and range violations during exploratory data analysis (EDA)?

What a Strong Answer Covers Guidance

  • Checking numeric columns against domain bounds
  • Checking categorical columns against the allowed set and for inconsistent spellings
  • Rules that span several columns or involve dates
  • Type, format and unit problems
  • Making the checks repeatable, and deciding what to do with the rows that fail

Follow-up Questions Guidance

  • How do you tell an invalid value from a valid outlier?
  • What would you do with rows that fail a check: drop them, fix them, or set them to missing?
  • How would you spot placeholder values such as 999 or 1900-01-01 used to mean "unknown"?
  • How would you run these checks automatically every time new data arrives?