You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We create a color mapping between country codes and colors for consistency
154
148
@@ -179,14 +173,14 @@ mystnb:
179
173
fig, ax = plt.subplots(dpi=300)
180
174
cntry = 'GBR'
181
175
_ = gdppc[cntry].plot(
182
-
ax = fig.gca(),
183
-
ylabel = 'International $\'s',
184
-
xlabel = 'Year',
185
-
linestyle='-',
186
-
color=color_mapping['GBR'])
176
+
ax=fig.gca(),
177
+
ylabel='International $\'s',
178
+
xlabel='Year',
179
+
linestyle='-',
180
+
color=color_mapping['GBR']
181
+
)
187
182
```
188
183
189
-
+++ {"user_expressions": []}
190
184
191
185
:::{note}
192
186
[International Dollars](https://en.wikipedia.org/wiki/International_dollar) are a hypothetical unit of currency that has the same purchasing power parity that the U.S. Dollar has in the United States at any given time. They are also known as Geary–Khamis dollars (GK Dollars).
@@ -219,7 +213,6 @@ ax.set_xlabel('Year')
219
213
plt.show()
220
214
```
221
215
222
-
+++ {"user_expressions": []}
223
216
224
217
We can now put this into a function to generate plots for a list of countries
The preceding graph of per capita GDP strikingly reveals how the spread of the industrial revolution has over time gradually lifted the living standards of substantial
In this section we describe how we have constructed a version of the striking figure from chapter 1 of {cite}`Tooze_2014` that we discussed at the start of this lecture.
At the start of this lecture, we noted how US GDP came from "nowhere" at the start of the 19th century to rival and then overtake the GDP of the British Empire
561
546
by the end of the 19th century, setting the geopolitical stage for the "American (twentieth) century".
It is tempting to compare this graph with figure {numref}`gdp1` that showed the US overtaking the UK near the start of the "American Century", a version of the graph featured in chapter 1 of {cite}`Tooze_2014`.
590
574
@@ -595,11 +579,11 @@ We often want to study historical experiences of countries outside the club of "
595
579
Fortunately, the [Maddison Historical Statistics](https://www.rug.nl/ggdc/historicaldevelopment/maddison/) dataset also includes regional aggregations
596
580
597
581
```{code-cell} ipython3
598
-
data = pd.read_excel("datasets/mpd2020.xlsx", sheet_name='Regional data', header=(0,1,2), index_col=0)
582
+
data = pd.read_excel("datasets/mpd2020.xlsx", sheet_name='Regional data', header=(0,1,2),
583
+
index_col=0)
599
584
data.columns = data.columns.droplevel(level=2)
600
585
```
601
586
602
-
+++ {"user_expressions": []}
603
587
604
588
We can save the raw data in a more convenient format to build a single table of regional GDP per capita
Looking more closely, let's compare the time series for `Western Offshoots` and `Sub-Saharan Africa` and more broadly at a number of different regions around the world.
0 commit comments