Skip to content

Commit 79e1aa1

Browse files
Jiarui-ZHmmcky
andauthored
Apply suggestions from code review
Co-authored-by: Matt McKay <[email protected]>
1 parent 4abbaff commit 79e1aa1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lectures/inflation_history.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ kernelspec:
1717

1818
This lecture offers some historical evidence about fluctuations in levels of aggregate price indexes.
1919

20-
Let's start by installing the necessary Python packages, which will be needed to extract information and perform operations on Excel files.
20+
Let's start by installing the necessary Python packages.
21+
22+
The `xlrd` package is used by `pandas` to perform operations on Excel files.
2123

2224
```{code-cell} ipython3
2325
!pip install xlrd
@@ -168,9 +170,9 @@ for col in cols:
168170
y=df_fig5[col].iloc[-1], s=col)
169171
170172
ax.set_yscale('log')
171-
ax.set_ylabel('Logged Price Levels (Index 1913 = 100)')
173+
ax.set_ylabel('Logs of price levels (Index 1913 = 100)')
172174
ax.set_ylim([10, 1e6])
173-
ax.set_xlabel('Year')
175+
ax.set_xlabel('year')
174176
ax.set_xlim(xmin=1600)
175177
plt.tight_layout()
176178
plt.show()

0 commit comments

Comments
 (0)