Skip to content

Commit 267f368

Browse files
committed
fix
1 parent 37222a8 commit 267f368

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lectures/long_run_growth.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,10 @@ First let's import the packages needed to explore what the data says about long
6767

6868
```{code-cell} ipython3
6969
import pandas as pd
70-
import os
71-
import matplotlib as mpl
7270
import matplotlib.pyplot as plt
7371
import matplotlib.cm as cm
7472
import numpy as np
7573
from collections import namedtuple
76-
from matplotlib.lines import Line2D
7774
```
7875

7976

@@ -501,14 +498,17 @@ Let's first define a collection of countries that consist of the British Empire
501498

502499
```{code-cell} ipython3
503500
BEM = ['GBR', 'IND', 'AUS', 'NZL', 'CAN', 'ZAF']
504-
gdp['BEM'] = gdp[BEM].loc[start_year-1:end_year].interpolate(method='index').sum(axis=1) # Interpolate incomplete time-series
501+
# Interpolate incomplete time-series
502+
gdp['BEM'] = gdp[BEM].loc[start_year-1:end_year].interpolate(method='index').sum(axis=1)
505503
```
506504

507505

508506
Let's take a look at the aggregation that represents the British Empire.
509507

510508
```{code-cell} ipython3
511-
gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation
509+
# The first year is np.nan due to interpolation
510+
gdp['BEM'].plot(ylabel="International $'s")
511+
plt.show()
512512
```
513513

514514
```{code-cell} ipython3

0 commit comments

Comments
 (0)