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
{{ message }}
Repository navigation
Commit fc339be
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: project/project1/project1.ipynb
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@
460
460
"\n",
461
461
"---\n",
462
462
"\n",
463
-
"**Question 1.3.** Is population growing more slowly perhaps because people aren\u2019t living as long? Use the `life_expectancy` table to draw a line graph with the years 1950 and later on the horizontal axis that shows how the _life expectancy at birth_ has changed in Poland. **(5 points)**\n",
463
+
"**Question 1.3.** Is population growing more slowly perhaps because people aren’t living as long? Use the `life_expectancy` table to draw a line graph with the years 1950 and later on the horizontal axis that shows how the _life expectancy at birth_ has changed in Poland. **(5 points)**\n",
464
464
"\n",
465
465
"_Hint_: Make sure you filter the table properly; otherwise, the graph may look funky!\n"
466
466
]
@@ -524,9 +524,9 @@
524
524
"\n",
525
525
"---\n",
526
526
"\n",
527
-
"**Question 1.5.** Complete the function `fertility_over_time`. It takes two input arguments, the Alpha-3 code of a country (given as `country_code`) and a year to start from (given as `start`). It returns a two-column table with the column labels `Year` and `Children per woman`. These columns can be used to generate a line chart of the country\u2019s fertility rate each year (starting from the year given by `start`). The plot should include the start year and all later years that appear in the fertility table.\n",
527
+
"**Question 1.5.** Complete the function `fertility_over_time`. It takes two input arguments, the Alpha-3 code of a country (given as `country_code`) and a year to start from (given as `start`). It returns a two-column table with the column labels `Year` and `Children per woman`. These columns can be used to generate a line chart of the country’s fertility rate each year (starting from the year given by `start`). The plot should include the start year and all later years that appear in the fertility table.\n",
528
528
"\n",
529
-
"Then, determine the Alpha-3 code for **Poland**. The code at the very bottom for `poland_code` and the year `1950` are inputted to your `fertility_over_time` function. The function returns a table which we use in order to plot how Poland's fertility rate has changed since `1950`. Note that the function `fertility_over_time` should not return the plot itself \u2013 it returns a two-column table. The expression that draws the line plot is provided for you; please don\u2019t change it. **(5 points)**\n",
529
+
"Then, determine the Alpha-3 code for **Poland**. The code at the very bottom for `poland_code` and the year `1950` are inputted to your `fertility_over_time` function. The function returns a table which we use in order to plot how Poland's fertility rate has changed since `1950`. Note that the function `fertility_over_time` should not return the plot itself – it returns a two-column table. The expression that draws the line plot is provided for you; please don’t change it. **(5 points)**\n",
530
530
"\n",
531
531
"_Hint_: Read about `tbl.relabeled` in the [Python Reference](https://www.data8.org/sp26/reference/) to rename columns.\n",
532
532
"\n",
@@ -754,7 +754,7 @@
754
754
"id": "c1c51556",
755
755
"metadata": {},
756
756
"source": [
757
-
" ### Checkpoint (due Friday 2/18 by 5:00 PM PT)\n",
757
+
" ### Checkpoint (due Friday 2/20 by 5:00 PM PT)\n",
"The result of the cell below is interactive. Drag the slider to the right to see how countries have changed over time. You\u2019ll find that in terms of population growth, the divide between the countries of the global North and global South that existed in the 1960s has shrunk significantly. \n",
1271
+
"The result of the cell below is interactive. Drag the slider to the right to see how countries have changed over time. You’ll find that in terms of population growth, the divide between the countries of the global North and global South that existed in the 1960s has shrunk significantly. \n",
1272
1272
"\n",
1273
-
"This shift in fertility rates is the reason that the global population is expected to grow more slowly in the 21st century than it did in the 19th and 20th centuries. Fertility rates change for reasons that include cultural patterns, better prospects for children surviving to adulthood, and family planning (such as contraception and women\u2019s greater control over their reproduction).\n",
1273
+
"This shift in fertility rates is the reason that the global population is expected to grow more slowly in the 21st century than it did in the 19th and 20th centuries. Fertility rates change for reasons that include cultural patterns, better prospects for children surviving to adulthood, and family planning (such as contraception and women’s greater control over their reproduction).\n",
1274
1274
"\n",
1275
1275
"**Note:** Don't worry if a red warning pops up when running the cell below. You'll still be able to run the cell!"
1276
1276
]
@@ -1305,7 +1305,7 @@
1305
1305
"id": "77335fc7",
1306
1306
"metadata": {},
1307
1307
"source": [
1308
-
"When we look at population and fertility as data scientists, we need to learn about the experiences of people in real life, not just abstractly as data. We should also recognize that population studies have sometimes had political undercurrents. Those undercurrents have included population control, control of women\u2019s reproduction, or fears of shifts between racial groups. To do better as data scientists, we should check our assumptions to avoid unthinkingly reproducing past patterns."
1308
+
"When we look at population and fertility as data scientists, we need to learn about the experiences of people in real life, not just abstractly as data. We should also recognize that population studies have sometimes had political undercurrents. Those undercurrents have included population control, control of women’s reproduction, or fears of shifts between racial groups. To do better as data scientists, we should check our assumptions to avoid unthinkingly reproducing past patterns."
1309
1309
]
1310
1310
},
1311
1311
{
@@ -1470,7 +1470,7 @@
1470
1470
"source": [
1471
1471
"---\n",
1472
1472
"\n",
1473
-
"**Question 2.3.** Assign the name `poverty_percent` to the known percentage of the world\u2019s 2010 population that were living in extreme poverty. Assume that the `poverty_total` numbers in the `recent_poverty_total` table describe **all** people in 2010 living in extreme poverty. You should get a number that is above the 2018 global estimate of 9%, since many country-specific poverty rates are older than 2018.\n",
1473
+
"**Question 2.3.** Assign the name `poverty_percent` to the known percentage of the world’s 2010 population that were living in extreme poverty. Assume that the `poverty_total` numbers in the `recent_poverty_total` table describe **all** people in 2010 living in extreme poverty. You should get a number that is above the 2018 global estimate of 9%, since many country-specific poverty rates are older than 2018.\n",
1474
1474
"\n",
1475
1475
"*Hint*: The sum of the `population_total` column in the `recent_poverty_total` table is not the world population, because only a subset of the world's countries are included in the `recent_poverty_total` table (only some countries have known poverty rates). Use the `population` table to compute the world's 2010 total population.\n",
1476
1476
"\n",
@@ -1732,7 +1732,7 @@
1732
1732
"\n",
1733
1733
"*Hint 2:* Consider using `join` in your code.\n",
1734
1734
"\n",
1735
-
"*Hint 3:* Remember from Question 6\u2014to compute the population living in poverty from a poverty percentage, multiply the percentage by the country\u2019s population **in that year.**\n",
1735
+
"*Hint 3:* Remember from Question 6—to compute the population living in poverty from a poverty percentage, multiply the percentage by the country’s population **in that year.**\n",
1736
1736
"\n",
1737
1737
"Feel free to use the markdown cell below to plan out your answer, but you needn't fill it in.\n",
0 commit comments