Commit 524de15
* Update business cycle data to latest available (#364)
FRED series had hardcoded end dates of 2022-12-31, capping the
unemployment, NBER recession, consumer sentiment/CPI and industrial
output series. Switch these to datetime.now() so the lecture always
pulls the most recent data, matching the auto-updating World Bank
series.
Also pin the most recent year as an explicit x-axis tick in
plot_series and plot_comparison, so the extended GDP series read as
intentional rather than trailing off past the last labelled tick.
Update prose that referenced fixed end years (2022) to "the present".
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Centralize data cutoff and make narrative evergreen
Address narrative-drift risk from dynamic data dates:
- Define the data cutoff once (end_date) with a documented one-line
switch to pin it for reproducible builds, instead of repeating
datetime.now() across four FRED cells.
- Rename the 1942 historical cutoff to hist_end_date so it no longer
clobbers the shared end_date in the unemployment cell.
- Reword the post-pandemic labour-market sentence to be anchored to
the 2020 shock rather than to the moving right edge of the chart.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Drop the pinned final-year x-axis tick
The added final-year tick crowded the existing 2020 ("Covid-19") tick
and looked worse than the gap it was meant to address. Revert to
matplotlib's default x-axis ticks in plot_series and plot_comparison.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Matt McKay <mmcky@users.noreply.github.com>
1 parent e7e7571 commit 524de15
1 file changed
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| |||
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
319 | | - | |
| 328 | + | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
324 | 333 | | |
325 | | - | |
| 334 | + | |
326 | 335 | | |
327 | 336 | | |
328 | | - | |
| 337 | + | |
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
333 | | - | |
334 | 342 | | |
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
339 | | - | |
| 347 | + | |
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
| |||
359 | 367 | | |
360 | 368 | | |
361 | 369 | | |
362 | | - | |
363 | 370 | | |
364 | 371 | | |
365 | 372 | | |
| |||
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
401 | | - | |
402 | | - | |
| 408 | + | |
| 409 | + | |
403 | 410 | | |
404 | | - | |
| 411 | + | |
405 | 412 | | |
406 | 413 | | |
407 | 414 | | |
| |||
616 | 623 | | |
617 | 624 | | |
618 | 625 | | |
619 | | - | |
| 626 | + | |
620 | 627 | | |
621 | 628 | | |
622 | 629 | | |
| |||
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
631 | | - | |
632 | 638 | | |
633 | 639 | | |
634 | 640 | | |
635 | | - | |
| 641 | + | |
636 | 642 | | |
637 | 643 | | |
638 | 644 | | |
| |||
698 | 704 | | |
699 | 705 | | |
700 | 706 | | |
701 | | - | |
| 707 | + | |
702 | 708 | | |
703 | 709 | | |
704 | 710 | | |
| |||
710 | 716 | | |
711 | 717 | | |
712 | 718 | | |
713 | | - | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
746 | 751 | | |
747 | 752 | | |
748 | 753 | | |
749 | | - | |
| 754 | + | |
750 | 755 | | |
751 | 756 | | |
752 | 757 | | |
| |||
0 commit comments