Skip to content

Commit ec5f5e1

Browse files
authored
migrate changes in lrg (#186)
1 parent d7c0cd6 commit ec5f5e1

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

lectures/long_run_growth.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,8 @@ data.head()
100100
让我们看看这个数据集中有多少经济体。
101101

102102
```{code-cell} ipython3
103-
regions = data.country.unique()
104-
len(regions)
105-
```
106-
107-
通过运行上面的代码,我们可以列出这个数据集有多少个经济体。
108-
109-
下面,我们将列出这些经济体。
110-
111-
```{code-cell} ipython3
112-
regions
103+
countries = data.country.unique()
104+
len(countries)
113105
```
114106

115107
我们现在可以继续探索数据集里的169个经济体。
@@ -118,7 +110,7 @@ regions
118110

119111
```{code-cell} ipython3
120112
country_years = []
121-
for country in regions:
113+
for country in countries:
122114
cy_data = data[data.country == country]['year']
123115
ymin, ymax = cy_data.min(), cy_data.max()
124116
country_years.append((country, ymin, ymax))

0 commit comments

Comments
 (0)