Interview Insights · Data Analytics
What a Great Notebook Walkthrough Actually Sounds Like
Quick summary — Notebook walkthrough
A great notebook walkthrough is guided by the question, not by the order of the cells. When I ask a candidate to walk me through a notebook, the best ones treat it like a tour. They state the business question first, spend under a minute on the data, take me straight to the cell that answers the question, read its chart in plain language, and finish by saying what the result does not prove. The worst ones start at the imports and read code aloud until time runs out. The difference is preparation, not talent.
In this guide you will learn:
- The four-stop structure that works for almost any analysis notebook
- How to set up markdown headers so the tour is easy to navigate on screen
- How to narrate a key cell, using a cohort retention example
- How to read a chart aloud so the interviewer sees the finding
- How to close with limits and a next step instead of 'that's it'
SECTION 01Open with the question, then skip ahead on purpose
The first thirty seconds decide whether the interviewer follows you or drifts. A great walkthrough opens on a markdown cell that states the question in one sentence, who it is for and what decision it supports. For example: 'Do customers who join in festive months stay as long as customers who join in other months? The marketing team wanted to know whether festive campaigns bring loyal customers or one-time buyers.'
After that, a strong candidate says something like: 'I will skip the imports and loading, and spend most of our time on the retention analysis in section three.' That one sentence shows control. You are not hiding the early cells, you are offering them. If the interviewer wants to see cleaning, they will ask, and you will go there by choice instead of reading through it by habit.
| Notebook section | Time to spend | What to say | What to skip |
|---|---|---|---|
| Question and context | About 30 seconds | The question, the user and the decision | Background theory |
| Data and cleaning | About 45 seconds | Source, grain, one or two key cleaning choices | Every rename and dtype fix |
| Core analysis | Two to three minutes | Method, one key cell, the chart and its meaning | Exploratory charts that went nowhere |
| Findings and limits | About one minute | What it shows, what it cannot show, next step | Repeating every number |
# Festive-season cohorts: do they stay?
**Question:** Do customers acquired in festive months
retain as well as customers acquired in other months?
**For:** Marketing team planning next year's campaigns.
**Decision supported:** How much budget to give festive
acquisition versus retention offers.
## 1. Data and cleaning
## 2. Building monthly cohorts
## 3. Retention by cohort <- main analysis
## 4. Findings, limits and next steps"This notebook answers one question for the marketing
team: do customers who join during festive months stay
as long as others?
I will cover the data quickly, then spend most of the
time in section 3, the retention table and heatmap,
because that is where the answer is.
Happy to open the cleaning steps if you want to see them."
Numbered markdown headers also help during a screen share. With the table of contents panel open in JupyterLab, you can jump to section 3 in one click instead of scrolling for half a minute while the interviewer waits.
SECTION 02Narrate the key cell as decisions, not syntax
Once you reach the core analysis, resist the urge to read the code. The interviewer can see the code. What they cannot see is why it is shaped that way. Narrate the cell as a short list of decisions: what each row represents, how the groups were formed and what the output means.
Here is a cohort retention cell for the festive question. A cohort is the group of customers who made their first purchase in the same month. For each cohort, we count how many were still active one, two, three months later. A great narration covers three points: how the first purchase month was found, how the month offset was calculated, and why the result is shown as a share of the cohort size rather than raw counts.
| Line in the cell | Decision behind it | How to narrate it | Possible follow-up |
|---|---|---|---|
| groupby + transform('min') | Cohort = month of first order | Each customer belongs to the month they first bought | Why first order, not sign-up date? |
| Period difference | Offset in whole months | Month 0 is the joining month, then 1, 2, 3 | How do you handle partial months? |
| nunique on customer_id | Count people, not orders | One customer with many orders counts once | Why not count orders? |
| Divide by column 0 | Share of the cohort still active | Makes small and large cohorts comparable | What if a cohort is very small? |
import pandas as pd
orders = pd.read_csv('data/orders.csv', parse_dates=['order_date'])
orders['order_month'] = orders['order_date'].dt.to_period('M')
# Cohort = month of each customer's first order
orders['cohort'] = (orders
.groupby('customer_id')['order_month']
.transform('min'))
# Months since joining (0 = joining month)
orders['offset'] = (orders['order_month'] - orders['cohort']).apply(lambda d: d.n)
# Unique active customers per cohort and offset
counts = (orders
.groupby(['cohort', 'offset'])['customer_id']
.nunique()
.unstack(fill_value=0))
# Share of each cohort still active
retention = counts.div(counts[0], axis=0).round(3)
retention.head()"Each customer is placed in the month of their first
order. That is their cohort.
For every later order I calculate how many months after
joining it happened, so the joining month is zero.
Then I count unique customers, not orders, at each offset,
because one loyal customer with many orders should not
look like many customers.
Finally I divide by the cohort size, so a large October
cohort and a small March cohort can be compared directly."
That narration takes under a minute and contains no syntax at all, yet it proves you understand every line. If the interviewer wants syntax, they will ask about transform or the period arithmetic, and you can answer from a position of control.
SECTION 03Read the chart aloud, then close on what it cannot prove
The weakest sentence in any notebook walkthrough is 'and this is the chart'. A chart does not speak for itself in an interview, especially over a shared screen where the text may be small. Tell the interviewer how to read it: what the axes are, where to look, and what the pattern means for the question.
Then close properly. A great walkthrough ends by stating the limits of the analysis. Cohort retention shows a pattern, but it does not prove the festive campaign caused it. Festive cohorts might include more discount-driven buyers, or a different product mix. Saying that clearly, and naming the next test you would run, ends the tour on judgement rather than on a picture.
| Chart reading step | Example sentence | Why it helps | Common mistake |
|---|---|---|---|
| Axes | Rows are joining months, columns are months since joining | Orients the listener | Assuming they can read the labels |
| Where to look | Compare the October and November rows to the rest | Points to the evidence | Describing every cell |
| The pattern | Their retention drops faster after month two | States the finding | Saying 'as you can see' |
| The meaning | Festive campaigns bring more one-time buyers | Answers the question | Stopping before the conclusion |
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(9, 6))
im = ax.imshow(retention.iloc[:, :7], cmap='Blues', vmin=0, vmax=1)
ax.set_xticks(range(7))
ax.set_xticklabels([f'M{m}' for m in range(7)])
ax.set_yticks(range(len(retention)))
ax.set_yticklabels(retention.index.astype(str))
ax.set_xlabel('Months since first order')
ax.set_ylabel('Cohort (first order month)')
ax.set_title('Share of cohort still ordering')
fig.colorbar(im, ax=ax, label='Retention share')
plt.tight_layout()
plt.show()## 4. Findings, limits and next steps
**Finding:** In this data, festive-month cohorts
retained less after the second month than other cohorts.
**Limits:**
- This shows association, not cause.
- Festive cohorts may differ in discount use and
product mix.
- Recent cohorts have fewer months of history.
**Next step:** Compare festive customers with and
without discount codes, and propose a small retention
offer test for the next festive cohort.
Notice that the closing cell does not claim more than the data allows. Saying 'in this data' and 'association, not cause' shows statistical maturity. Then the next step turns the limit into a plan, which is the note you want the interviewer to remember.
SECTION 04Turn your own notebook into a five-minute tour
Prepare once, and every future walkthrough becomes easier. These tabs help you restructure the notebook, plan the tour and rehearse it.
BEFORE THE INTERVIEW, ADD TO YOUR NOTEBOOK:
[ ] Title cell with question, audience and decision
[ ] Numbered section headers (1, 2, 3, 4)
[ ] One markdown line under each header: what this does
[ ] Mark the main analysis section clearly
[ ] Move dead-end exploration to an appendix section
[ ] Final cell: findings, limits, next steps
[ ] Restart kernel and run all, so outputs are freshMY 5-MINUTE TOUR
Stop 1 (0:00) Question: ______________________
Stop 2 (0:30) Data and grain: ________________
One cleaning choice: ____________
Stop 3 (1:15) Key cell: section __ cell __
Narration: 'Each ____ ...'
Chart reading: axes / look at / means
Stop 4 (4:00) Limit 1: ____ Limit 2: ____
Next step: ______________________
Hand-off line: 'Would you like to see ____?'REHEARSE THREE TIMES
Run 1: alone, with a timer. Note where you go over.
Run 2: screen share to a friend. Ask them:
- What was the question?
- What was the answer?
- What can the analysis NOT tell us?
Run 3: same friend interrupts twice with
'Why did you do that?' at random cells.
Ready when your friend answers all three
questions correctly after Run 2.
SECTION 05Habits that make a notebook tour feel effortless
These small habits make a big difference when you share your screen.
- Zoom in before sharing — Increase the browser zoom so code and chart labels are readable on the interviewer's screen. Small text forces them to guess.
- Collapse long outputs — Hide huge DataFrame prints and warnings before the interview, so scrolling to the key section is quick and clean.
- Point with words — Say 'the second row from the top' or 'the column labelled M3' instead of 'here' or 'this one', because your cursor may not be visible.
- Keep one number per finding — Give a single number that supports each finding, rather than a list. It is easier to remember and easier to defend.
- Use an appendix — Move exploratory charts to an appendix at the end. You can still show them if asked, but they will not clutter the main tour.
SECTION 06Interview Q&A — Notebook walkthrough
Q1Walk me through this notebook.
Start with the question cell: what you investigated, for whom and what decision it supports. Summarise the data source, grain and one key cleaning choice. Then go straight to the main analysis cell, narrate its decisions, read the chart aloud and finish with findings, limits and a next step.
Q2What is a cohort, and why did you analyse retention by cohort?
A cohort is a group of customers who share a starting point, here the month of their first order. Comparing cohorts shows whether customers who joined at different times behave differently, which a single overall retention rate would hide.
Q3Why did you count unique customers instead of orders?
Retention is about people staying, not the volume of orders. Counting orders would let one very active customer make a cohort look healthier than it is, so I used nunique on customer ID for each month offset.
Q4Does this prove the festive campaign brings worse customers?
No. It shows that, in this data, festive cohorts retained less after the second month. The difference could come from discount use, product mix or other factors. A controlled test or a comparison within similar customers would be needed to talk about cause.
Q5If you had another week, what would you add to this notebook?
I would segment festive cohorts by discount use and first product category to see which group drives the drop, and I would turn the cohort steps into a function so the analysis can be refreshed monthly with new data.
SECTION 07Test yourself — Notebook walkthrough quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
How do I present a Jupyter notebook in an interview?
Use a short tour: the question, a quick look at the data, the key analysis cell with its chart, and the findings with limits. Prepare clear markdown headers so you can jump between sections, and avoid reading code line by line.
How long should a notebook walkthrough take?
Around five minutes for the first pass is a good target. Spend most of it on the main analysis and leave time for the interviewer to ask about specific cells.
Should I explain every cell in my notebook?
No. Explain the cells that answer the question and offer to show the rest. Interviewers prefer a candidate who knows which parts matter over one who reads everything in order.
What is cohort analysis in simple words?
It groups customers by when they started, usually the month of their first purchase, and tracks how many of each group remain active in the following months. It shows whether newer or older groups behave differently.
How do I make my notebook look professional for interviews?
Add a title cell with the question, numbered section headers, short markdown explanations, readable charts with labelled axes, a findings and limits cell at the end, and make sure it runs top to bottom in a fresh kernel.
Where can I practise answers like these with expert feedback?
Yes. Uncodemy's Data Analytics Training Course in Noida (classroom and online) includes live projects, one-to-one mock interviews and resume reviews, so you practise answers like these with trainer feedback before the real interview. You can book a free demo class from this page to see how the sessions work.
SECTION 09Related reads
Classroom & online · Noida
Learn to present analysis like a working analyst
Our Data Analytics Training Course covers Python, pandas, visualisation and analysis storytelling, with regular sessions where you present your own notebooks to trainers and peers.
₹15,500 · full programme- Cohort and retention projects
- Chart storytelling practice
- Notebook presentation mocks
- Weekday & weekend batches