@@ -19,7 +19,7 @@ This lecture offers some historical evidence about fluctuations in levels of agg
1919
2020Let's start by installing the necessary Python packages.
2121
22- The ` xlrd ` package is used by ` pandas ` to perform operations on Excel files.
22+ The ` xlrd ` package is used by ` pandas ` to perform operations on Excel files.
2323
2424``` {code-cell} ipython3
2525!pip install xlrd
@@ -375,7 +375,7 @@ for i in range(4):
375375 sheet_list = [process_df(df) for df in sheet_list]
376376 df_list.append(pd.concat(sheet_list, axis=1))
377377
378- df_aus, df_hung , df_pol, df_germ = df_list
378+ df_aus, df_hun , df_pol, df_deu = df_list
379379```
380380
381381Now let's construct graphs for our four countries.
@@ -453,16 +453,16 @@ mystnb:
453453 caption: Price index and exchange rate (Hungary)
454454 name: pi_xrate_hungary
455455---
456- m_seq = df_hung ['Notes in circulation']
457- p_seq = df_hung ['Hungarian index of prices']
458- e_seq = 1 / df_hung ['Cents per crown in New York']
456+ m_seq = df_hun ['Notes in circulation']
457+ p_seq = df_hun ['Hungarian index of prices']
458+ e_seq = 1 / df_hun ['Cents per crown in New York']
459459
460460lab = ['Hungarian index of prices',
461461 '1/cents per Hungarian Korona (Crown)']
462462
463463# Create plot
464464fig, ax = plt.subplots(dpi=200)
465- _ = pe_plot(p_seq, e_seq, df_hung .index, lab, ax)
465+ _ = pe_plot(p_seq, e_seq, df_hun .index, lab, ax)
466466
467467plt.show()
468468```
@@ -476,7 +476,7 @@ mystnb:
476476---
477477# Plot moving average
478478fig, ax = plt.subplots(dpi=200)
479- _ = pr_plot(p_seq, df_hung .index, ax)
479+ _ = pr_plot(p_seq, df_hun .index, ax)
480480
481481plt.show()
482482```
@@ -564,16 +564,16 @@ mystnb:
564564 caption: Price index and exchange rate (Germany)
565565 name: pi_xrate_germany
566566---
567- p_seq = df_germ ['Price index (on basis of marks before July 1924,'
567+ p_seq = df_deu ['Price index (on basis of marks before July 1924,'
568568 ' reichsmarks after)'].copy()
569- e_seq = 1/df_germ ['Cents per mark']
569+ e_seq = 1/df_deu ['Cents per mark']
570570
571571lab = ['Price index',
572572 '1/cents per mark']
573573
574574# Create plot
575575fig, ax = plt.subplots(dpi=200)
576- ax1 = pe_plot(p_seq, e_seq, df_germ .index, lab, ax)
576+ ax1 = pe_plot(p_seq, e_seq, df_deu .index, lab, ax)
577577
578578plt.show()
579579```
@@ -585,9 +585,9 @@ mystnb:
585585 caption: Price index (adjusted) and exchange rate (Germany)
586586 name: piadj_xrate_germany
587587---
588- p_seq = df_germ ['Price index (on basis of marks before July 1924,'
588+ p_seq = df_deu ['Price index (on basis of marks before July 1924,'
589589 ' reichsmarks after)'].copy()
590- e_seq = 1/df_germ ['Cents per mark'].copy()
590+ e_seq = 1/df_deu ['Cents per mark'].copy()
591591
592592# Adjust the price level/exchange rate after the currency reform
593593p_seq[p_seq.index > '06-01-1924'] = p_seq[p_seq.index
@@ -600,7 +600,7 @@ lab = ['Price index (marks or converted to marks)',
600600
601601# Create plot
602602fig, ax = plt.subplots(dpi=200)
603- ax1 = pe_plot(p_seq, e_seq, df_germ .index, lab, ax)
603+ ax1 = pe_plot(p_seq, e_seq, df_deu .index, lab, ax)
604604
605605plt.show()
606606```
@@ -614,7 +614,7 @@ mystnb:
614614---
615615# Plot moving average
616616fig, ax = plt.subplots(dpi=200)
617- _ = pr_plot(p_seq, df_germ .index, ax)
617+ _ = pr_plot(p_seq, df_deu .index, ax)
618618
619619plt.show()
620620```
0 commit comments