Telling the story
Last updated
A notebook records an analysis in the order you did it. A reader needs it in a different order: the answer first, then the evidence, then what could be wrong with it. In this lesson you'll rewrite a notebook dump as a story, give each chart a title that states its finding, and swap the analyst's words for ones the owners use.
By the end of this lesson you can
- Order a report as answer, evidence, caveats and next steps
- Title a chart with its finding, and point the reader to what matters
- Write for readers who don't do analysis
Wrong way: the notebook dump
The 9.P business review is done, and the analyst sends the owners the notebook as it stands. It's all correct. Look at it the way the owners will:
- working Loaded books.csv: 144 rows, 5 columns. No missing values.
- working Table: takings by year, 2022 to 2024.
- working Chart: takings by store and month, 36 months, four lines. (Untitled.)
- working Merged the CPI and computed real pesos.
- working Table: change on the same month last year, per day open, 4 stores × 12 months.
- working Table: card holders kept after 3 months, by store.
- ending Conclusion: Rosario’s numbers are lower on several measures. Further analysis is needed.
The reader has to rebuild the argument from six pieces of working, and the last line asks for more analysis without saying what it would answer. Switch to the story.
The dump makes the reader do the analyst's job: hold six tables in mind, work out which matter, and guess the conclusion. Then it ends with "further analysis is needed", which tells the owners nothing they can act on and hides the fact that the analysis did find something.
"Further analysis is needed" is fine as a next step when it says what analysis, to answer what, and what would change as a result: "Ask 20 lapsed Rosario card holders why they stopped, to decide whether to change its prices or its opening hours."
The check: read the first two sentences of your report alone. If they don't tell the reader the answer, rewrite them until they do.
Answer, evidence, caveats, next
Most reports for decision-makers follow one order, whatever the subject:
- The answer, in a sentence or two. Busy readers may read nothing else.
- The evidence: each point that supports the answer, with its number and its comparison. Usually two to four points, each with one chart or table.
- The caveats: what the data can't tell, and what else could explain it. Leaving them out doesn't make the finding stronger; it makes the reader trust you less when they find them.
- What next: the recommendation, sized to the evidence (9.10).
- An appendix: how it was done, the data, and the notebook, for anyone who wants to check.
Your notebook doesn't have to change order. Keep it as the working record, and write the report as a separate notebook or document (10.2) that reads from the same clean data.
One chart per point
Each chart in a report should make one point, and the title should say what it is. Run the cells: the same data, charted twice.
The first chart is what came out of the analysis: a column name for a title, four equal lines, and a legend the reader must match to colours. The second is the chart for the report:
- The title is the finding: "Rosario is the only store below last year, every month since May". A reader who reads only titles still gets the story.
- One line is highlighted, and the others are grey: they're the comparison, not the point.
- Labels sit at the end of each line with
ax.annotate, so there's no legend to decode.xytext=(6, 0)withtextcoords="offset points"moves each label 6 points to the right of the last value. - A line at zero: above it is growth, below it decline.
Stage 6's rules still apply: start bars at zero, label axes with units, and check the colours for colour blindness (6.7).
Words for the reader
Analysts pick up words that mean nothing to most readers, or mean something different. Translate them:
| analyst | reader |
|---|---|
| YoY per-day takings −1.1% | Per day open, December was 1.1% below last December |
| statistically significant, p = 0.022 | Too big a difference to be chance |
| 95% CI 7.7 to 24.3 | Probably between 8% and 24% |
| n = 43 | 43 card holders |
| retention at | Still buying three months after joining |
| outlier removed | We left out one day: the store was closed for a typhoon |
Three more habits:
- Round for the reader. ₱3,403,023 in a table; "₱3.4 million" in a sentence.
- Say the comparison every time. "Up 5.7%" on what? "Up 5.7% on 2023."
- Use the reader's names for things: "suki card", not
card_months; "Rosario", notstore_4.
Check what you learned
Sources
Every example on this page was run with Python 3.14, and its output and error messages are copied from it. These pages cover the same ground in more depth.
- matplotlib: Axes.annotate: placing text next to a point, with offsets
- W3C Web Accessibility Initiative: Writing for web accessibility: clear headings, plain words, and explaining terms
- Diez, Çetinkaya-Rundel and Barr, OpenIntro Statistics, 4th ed., section 1.4: what an observational study can and can’t show, for the caveats