Skip to content

Commit

Permalink
[business_cycle] Update Variable Name for Industrial Output (#369)
Browse files Browse the repository at this point in the history
* update variable name for industrial output

* remove jupytext markup

---------

Co-authored-by: mmcky <mamckay@gmail.com>
  • Loading branch information
HumphreyYang and mmcky authored Feb 16, 2024
1 parent 147d10f commit 6244e43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lectures/business_cycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ kernelspec:
name: python3
---


# Business Cycles

## Overview
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 6244e43

Please sign in to comment.