Skip to content

Commit 069a30b

Browse files
committed
[inflation_history] ENH: Implement review suggestions and comments
1 parent d9f5fb9 commit 069a30b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lectures/inflation_history.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
2121

2222
```{code-cell} ipython3
2323
:tags: [hide-output]
24+
2425
!pip install xlrd
2526
```
2627

2728
<!-- Check for pandas>=2.1.4 for Google Collab Compat -->
2829

2930
```{code-cell} ipython3
3031
:tags: [hide-cell]
32+
3133
from importlib.metadata import version
3234
from packaging.version import Version
3335
@@ -100,16 +102,16 @@ mystnb:
100102
caption: Long run time series of the price level
101103
name: lrpl
102104
---
103-
df_fig5_bef1914 = df_fig5[df_fig5.index <= 1915]
105+
df_fig5_befe1914 = df_fig5[df_fig5.index <= 1914]
104106
105107
# Create plot
106108
cols = ['UK', 'US', 'France', 'Castile']
107109
108-
fig, ax = plt.subplots(dpi=200)
110+
fig, ax = plt.subplots(figsize=(10,6))
109111
110112
for col in cols:
111-
ax.plot(df_fig5_bef1914.index,
112-
df_fig5_bef1914[col], label=col, lw=2)
113+
ax.plot(df_fig5_befe1914.index,
114+
df_fig5_befe1914[col], label=col, lw=2)
113115
114116
ax.legend()
115117
ax.set_ylabel('Index 1913 = 100')
@@ -463,7 +465,6 @@ mystnb:
463465
caption: Price index and exchange rate (Hungary)
464466
name: pi_xrate_hungary
465467
---
466-
m_seq = df_hun['Notes in circulation']
467468
p_seq = df_hun['Hungarian index of prices']
468469
e_seq = 1 / df_hun['Cents per crown in New York']
469470

0 commit comments

Comments
 (0)