Automating the weekly Top 20 deck
Every week a content team needs a Top 20 review for each market: charts, ranked tables, week-on-week moves and a few lines on what changed. Done by hand, that means hours of export, paste, re-rank and reformat. I automated this in my role. Here is the same pipeline rebuilt end to end on synthetic data.
“Streamline+”, its titles and every number here are invented. Python (pandas, python-pptx).
- My role
- Automated this in my current role; rebuilt here end to end
- Stack
- Python (pandas, python-pptx) · native, editable PowerPoint charts
- Data
- Synthetic weekly extracts: 4 markets × 8 weeks, 72 invented titles
- Outcome
- Validated, ranked and annotated deck generated in one run; the analyst only reviews the commentary
The pain point
Hours on formatting, minutes on insight
Most of the effort goes into pasting numbers and fixing charts, leaving little time to say what the numbers mean.
Silent errors
A wrong week pasted into one market, a missed new entry or a stale header date. Nobody spots these until a leader asks.
A hard Monday deadline
The review meeting doesn’t move. When data arrives late, the analyst is the buffer.
The pipeline
Ingest
Read the weekly viewer extracts for every market.
Validate
Check for duplicates, missing weeks, thin markets and bad values before anything is built.
Transform
Top 20 per market, rank change against last week, new entries and category mix.
Narrate
Rule-based drafts: the leader, new entries, biggest climber and faller, category share.
Build
A .pptx with native, editable charts and tables, the same layout every week.
QA checks run on every build
What stays human
The commentary is a draft, not a verdict. The analyst adds context the data can’t see, such as a marketing push, a competitor launch or a holiday, and decides what leadership needs to hear. Automation moves the analyst’s time from pasting to thinking.
See a generated slide
This is a web rendering of the market slide the script writes into the deck. Pick a market and a week. The table, arrows and draft commentary all come from the same code.
The same pattern works for any recurring pack
- Retail: weekly sales by store and category, with top movers and stock alerts.
- Telco: the weekly KPI pack covering adds, churn, ARPU by plan and network incidents.
- Finance: month-end variance packs with commentary drafts on the biggest variances.
- Marketing: campaign performance by channel, with the week’s winners and losers called out.
If the structure repeats, the slides can be generated. Analyst time is better spent on the two sentences that change a decision.
Previous: Can you spot a hit before it launches? · All work