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
145
@@ -179,14 +170,14 @@ mystnb:
179
170
fig, ax = plt.subplots(dpi=300)
180
171
cntry = 'GBR'
181
172
_ = gdppc[cntry].plot(
182
-
ax = fig.gca(),
183
-
ylabel = 'International $\'s',
184
-
xlabel = 'Year',
185
-
linestyle='-',
186
-
color=color_mapping['GBR'])
173
+
ax=fig.gca(),
174
+
ylabel='International $\'s',
175
+
xlabel='Year',
176
+
linestyle='-',
177
+
color=color_mapping['GBR']
178
+
)
187
179
```
188
180
189
-
+++ {"user_expressions": []}
190
181
191
182
:::{note}
192
183
[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 +210,6 @@ ax.set_xlabel('Year')
219
210
plt.show()
220
211
```
221
212
222
-
+++ {"user_expressions": []}
223
213
224
214
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.
@@ -515,22 +498,23 @@ Let's first define a collection of countries that consist of the British Empire
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