From 6244e43de26a8febbdfd8873a086065f8e95fc37 Mon Sep 17 00:00:00 2001 From: Humphrey Yang <39026988+HumphreyYang@users.noreply.github.com> Date: Sat, 17 Feb 2024 10:09:51 +1100 Subject: [PATCH] [business_cycle] Update Variable Name for Industrial Output (#369) * update variable name for industrial output * remove jupytext markup --------- Co-authored-by: mmcky --- lectures/business_cycle.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lectures/business_cycle.md b/lectures/business_cycle.md index 6cfaaa2b..5e7174bb 100644 --- a/lectures/business_cycle.md +++ b/lectures/business_cycle.md @@ -11,7 +11,6 @@ kernelspec: name: python3 --- - # Business Cycles ## Overview @@ -716,13 +715,13 @@ end_date = datetime.datetime(2022, 12, 31) nber = web.DataReader('USREC', 'fred', start_date, end_date) -consumer_confidence = web.DataReader('INDPRO', 'fred', +industrial_output = web.DataReader('INDPRO', 'fred', start_date, end_date).pct_change(12)*100 fig, ax = plt.subplots() -ax.plot(consumer_confidence, **g_params, +ax.plot(industrial_output, **g_params, color='#377eb8', linestyle='-', - linewidth=2, label='Consumer price index') + linewidth=2, label='Industrial production index') ax.fill_between(nber.index, 0, 1, where=nber['USREC']==1, color='grey', edgecolor='none',