Skip to content

Commit 6244e43

Browse files
HumphreyYangmmcky
andauthored
[business_cycle] Update Variable Name for Industrial Output (#369)
* update variable name for industrial output * remove jupytext markup --------- Co-authored-by: mmcky <[email protected]>
1 parent 147d10f commit 6244e43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lectures/business_cycle.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
1514
# Business Cycles
1615

1716
## Overview
@@ -716,13 +715,13 @@ end_date = datetime.datetime(2022, 12, 31)
716715
717716
nber = web.DataReader('USREC', 'fred',
718717
start_date, end_date)
719-
consumer_confidence = web.DataReader('INDPRO', 'fred',
718+
industrial_output = web.DataReader('INDPRO', 'fred',
720719
start_date, end_date).pct_change(12)*100
721720
722721
fig, ax = plt.subplots()
723-
ax.plot(consumer_confidence, **g_params,
722+
ax.plot(industrial_output, **g_params,
724723
color='#377eb8', linestyle='-',
725-
linewidth=2, label='Consumer price index')
724+
linewidth=2, label='Industrial production index')
726725
ax.fill_between(nber.index, 0, 1,
727726
where=nber['USREC']==1,
728727
color='grey', edgecolor='none',

0 commit comments

Comments
 (0)