Sharing your work · lesson 1 of 8
Parts in this lesson
Aax.set(title="Rosario is the only store below last year")a title that says the finding
Bax.annotate(text, xy, xytext=(6, 0), textcoords="offset points")a label placed beside a point

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:

One analysis, two reports
  1. working Loaded books.csv: 144 rows, 5 columns. No missing values.
  2. working Table: takings by year, 2022 to 2024.
  3. working Chart: takings by store and month, 36 months, four lines. (Untitled.)
  4. working Merged the CPI and computed real pesos.
  5. working Table: change on the same month last year, per day open, 4 stores × 12 months.
  6. working Table: card holders kept after 3 months, by store.
  7. 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:

  1. The answer, in a sentence or two. Busy readers may read nothing else.
  2. 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.
  3. 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.
  4. What next: the recommendation, sized to the evidence (9.10).
  5. 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.

report.ipynb

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) with textcoords="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:

analystreader
YoY per-day takings −1.1%Per day open, December was 1.1% below last December
statistically significant, p = 0.022Too big a difference to be chance
95% CI 7.7 to 24.3Probably between 8% and 24%
n = 4343 card holders
retention at t+3Still buying three months after joining
outlier removedWe 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", not store_4.

Check what you learned

Which is the best first sentence for a report to the owners?
Which chart title is best for a report?

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.

All sources for Simple Data Analysis