Skip to content

Commit 770f3e9

Browse files
committed
course 1: fix small bug in solution of exercise 2.2
1 parent 41f0787 commit 770f3e9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

course1/exercises_course1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
" **Hint:** the column `60+ y.o.` contains the number of 60+ years old. The column `Total` contains\n",
392392
" the total number of inhabitants.\n",
393393
" \n",
394-
"2. Graphically represent the proportion of people more than 60 years old (`60+ y.o.`) across all cantons.\n",
394+
"2. Graphically represent the proportion of people over 60 years old (`60+ y.o.`) across all cantons.\n",
395395
" Choose the most appropriate kind of plot."
396396
]
397397
},
@@ -440,7 +440,7 @@
440440
"metadata": {},
441441
"outputs": [],
442442
"source": [
443-
"# %load -r 12- solutions/solution_22.py"
443+
"# %load -r 14- solutions/solution_22.py"
444444
]
445445
},
446446
{

course1/solutions/solution_22.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pandas as pd
22
import seaborn as sns
3+
import matplotlib.pyplot as plt
34

45
# Load the input data as a pandas DataFrame
56
df_census = pd.read_csv("data/swiss_census_1880.csv")

0 commit comments

Comments
 (0)