Interview's MateData Science
Interview's Mate

Data Science

Python → ML → MLOps

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Data Science topics
Lesson 17/ 160
01. Python & Data Wrangling

Exploratory Data Analysis (EDA) Workflows

Structure EDA: questions, profiles, plots, hypotheses, and documented findings for stakeholders.

IntermediateQuestion-first EDA · Profiling3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

In plain words

Know what you want to find out, check that the data is sound, look at it in a few different ways, and write down what you learned.

Think of it like…

A doctor's first consultation: start with why the patient came, check vitals and history, run specific tests that follow from what you find, and write notes so the next doctor knows what was ruled out. Random tests with no question and no notes waste everyone's time.

Where you’ve seen it

Asked "why did repeat purchases drop in October?", an analyst checks data quality first (a tracking change on 3 Oct doubled some events), segments repeat rate by acquisition channel, city and device, and finds the drop is confined to one paid channel after a campaign change brought in lower-intent users. The findings log lists the tracking fix, the channel result with numbers and two follow-up questions, so the marketing team can act the same day.

Words you’ll hear

Question-first EDA
Start from the decision to support, not from the dataset.
Data profile
Summary of rows, types, missing values, duplicates, ranges and cardinality.
Segmentation
Splitting results by groups (channel, city, cohort) to find where an effect lives.
Findings log
A running record of observations, decisions, open questions and evidence.

Visual diagram

Loading interactive diagram

Theory & deep dive

The workflow, step by step

Frame the question and define the metric exactly (what counts as a repeat purchase, over what window). Profile the data: df.shape, info(), describe(include="all"), missing and duplicate counts, key uniqueness, date ranges and obvious impossible values, and check how the data was collected (tracking changes, backfills, test traffic). Resolve or log quality issues before analysis; a finding built on broken data is worse than none.

Explore from simple to specific. Start with distributions of key variables, then trends over time, then segment cuts (channel, region, cohort) to locate where the effect lives, then relationships between variables. Form a hypothesis, test it with a number (not a hunch), and note whether it's supported, refuted or inconclusive. Control for obvious confounders such as seasonality, mix shifts and outliers, and check sample sizes before believing a small segment.

Locate the effect with segments

df.groupby(["month", "channel"]).agg(repeat=("is_repeat", "mean"), n=("order_id", "size")).unstack("channel") shows repeat rate and volume per channel per month, so a drop confined to one channel stands out and tiny segments are visible by their small n.

Key takeaway: Frame, profile, explore simple to specific, and test each hypothesis with a number.

Documenting findings so others can use them

Keep a findings log as you work: date, observation, evidence (a table or plot reference), interpretation, action taken (cleaned, excluded, escalated) and open questions. It prevents re-discovering the same issues, makes your decisions auditable, and becomes the skeleton of the summary. Organise the notebook as a story with headings (Question, Data, Quality, Exploration, Findings, Next steps) and ensure it runs from top to bottom with a fixed random seed and recorded data version.

Communicate with a short summary first: the answer in one or two sentences with the key number, the evidence in three or four charts with titles that state the finding ("Repeat rate fell only for paid social"), the caveats (sample size, data issues), and recommended actions. Remember that EDA shows association, not causation, and that looking at many cuts produces false positives by chance, so label exploratory findings as hypotheses and confirm important ones with a proper test or experiment.

A findings-log entry

"2026-11-12: Repeat rate fell from 31% to 24% in October (n = 41,800). Drop is concentrated in paid social (−11 points, n = 9,200); other channels flat (±1 point). Tracking fix on 3 Oct removes duplicated events and explains 1.5 points. Next: ask marketing about the 12 Oct targeting change."

Key takeaway: Log observations with evidence and caveats; lead the summary with the answer.

How it works, step by step

Step 1 of 4
Scope

1. Frame the question and metrics

Write the question, the exact metric definitions, the time window and what decision the answer supports.

repeat = 2nd order within 90 days
Key numbers at this step
Ask
who will act on this?

When to use it & trade-offs

What it is

Exploratory data analysis (EDA) is a structured investigation of a dataset before modelling or reporting. A good workflow is question-first: start with the decision or hypothesis, then profile the data (shape, types, missing values, duplicates, ranges), explore distributions and relationships with plots, test hypotheses against the data, and keep a findings log that records what you saw, what you did about it and what you'd ask the business next. The output isn't a pile of charts; it's a set of verified statements and next steps.

Why it matters: Unstructured EDA turns into aimless plotting. It misses data quality problems that later wreck a model, produces findings nobody can reproduce, and buries the two insights that matter among fifty charts. A repeatable workflow also makes it easy for stakeholders and teammates to trust and review your work, which is what interviewers look for in take-home analyses.

When to reach for it

  • Investigating metric changes
  • Preparing data for modelling
  • Take-home analyses and stakeholder briefings

When to avoid or be careful

  • Plotting everything with no question
  • Drawing conclusions before checking data quality
  • Treating exploratory patterns as proven causes

Approaches to exploration

Question-first, logged EDA
Best for: Business questions and take-home analyses

Strengths: Focused, reproducible, easy to review.

Watch out: Can miss unexpected patterns outside the question.

Open-ended exploration
Best for: New datasets with no clear question yet

Strengths: Surfaces surprises and ideas.

Watch out: Easy to wander; false positives from many cuts.

Automated profiling reports
Best for: A fast first pass over wide data

Strengths: Thorough summaries in minutes.

Watch out: Doesn't know your question; still needs judgement.

Interview signals & numbers to know

When this topic comes up

  • “Walk me through how you'd explore this dataset”
  • “Why did this metric drop?”
  • “How do you document analysis?”
  • Data quality checks
  • Segmentation

Benchmarks & rules of thumb

4 steps -
frame, profile, explore, record
n -
report sample size with every segment
top to bottom -
how a notebook should run

Common mistakes & follow-ups

Common interview mistakes

  • Building a story on a segment of 40 rows without noting the sample size.
  • Skipping quality checks and analysing duplicated or test traffic.
  • Presenting a correlation found after 50 slices as a confirmed cause.

Likely interviewer follow-ups

  • How would you start EDA on a new dataset?
  • How do you avoid false findings from many segment cuts?
  • What goes into a good findings log?
Interview tip: Narrate EDA as frame, profile, explore, record, and give one example finding with its sample size and caveat. Process plus evidence is the full answer.

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Exploratory Data Analysis (EDA) Workflows with data science interview Q&A and hands-on practice.

Open Data Science Q&A →Machine Learning Q&A
Previous topic
Regex for Text Cleaning
Next topic
Univariate & Bivariate Analysis