@@ -21,13 +21,15 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
21
21
22
22
``` {code-cell} ipython3
23
23
:tags: [hide-output]
24
+
24
25
!pip install xlrd
25
26
```
26
27
27
28
<!-- Check for pandas>=2.1.4 for Google Collab Compat -->
28
29
29
30
``` {code-cell} ipython3
30
31
:tags: [hide-cell]
32
+
31
33
from importlib.metadata import version
32
34
from packaging.version import Version
33
35
@@ -100,16 +102,16 @@ mystnb:
100
102
caption: Long run time series of the price level
101
103
name: lrpl
102
104
---
103
- df_fig5_bef1914 = df_fig5[df_fig5.index <= 1915 ]
105
+ df_fig5_befe1914 = df_fig5[df_fig5.index <= 1914 ]
104
106
105
107
# Create plot
106
108
cols = ['UK', 'US', 'France', 'Castile']
107
109
108
- fig, ax = plt.subplots(dpi=200 )
110
+ fig, ax = plt.subplots(figsize=(10,6) )
109
111
110
112
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)
113
115
114
116
ax.legend()
115
117
ax.set_ylabel('Index 1913 = 100')
@@ -463,7 +465,6 @@ mystnb:
463
465
caption: Price index and exchange rate (Hungary)
464
466
name: pi_xrate_hungary
465
467
---
466
- m_seq = df_hun['Notes in circulation']
467
468
p_seq = df_hun['Hungarian index of prices']
468
469
e_seq = 1 / df_hun['Cents per crown in New York']
469
470
0 commit comments