You're given a completely new, unseen dataset. Walk me through your initial steps and checks for performing EDA.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
You're given a completely new, unseen dataset. Walk me through your initial steps and checks for performing EDA.
Assume a tabular dataset you can load into pandas, with no prior analysis done on it.
```hint Order of work
Before plotting anything, ask what could make every later chart misleading, and check those things first.
```
```hint A pitfall
A column can look numeric and still hold IDs, category codes or placeholder values.
```
### Clarifying Questions to Ask
- What business question or decision will this analysis support?
- What is one row supposed to represent, and is there a data dictionary?
- How was the data collected and over what period, and is it a sample or the full population?
- Is there a target or outcome of interest, and when is it known relative to the other columns?
- How large is the dataset: does it fit in memory, or should I start from a sample?
### What a Strong Answer Covers
- Establishing context first: the unit of observation, what the columns mean and the question the data should answer
- Structural checks on shape, types, keys and duplicates
- Data quality checks for missing values, sentinel or impossible values and inconsistent categories
- Univariate exploration followed by relationships and time trends, with the tools used for each
- Recording issues, assumptions and hypotheses for the next step
### Follow-up Questions
- An important column is 30% missing. How do you decide what to do about it?
- How would your process change for a dataset with 500 million rows?
- How do you check whether missingness is random or related to other variables?
- If this data will train a model, what extra checks do you run for leakage?
Overview: Asks how you would start exploratory data analysis on a dataset you have never seen. It tests whether you check context, structure, types, keys, missing values and distributions in a sensible order before drawing conclusions from the data.