Skip to content

Commit fc339be

Browse files
edit date
1 parent 3bda3fe commit fc339be

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎project/project1/project1.ipynb‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
"\n",
461461
"---\n",
462462
"\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",
464464
"\n",
465465
"_Hint_: Make sure you filter the table properly; otherwise, the graph may look funky!\n"
466466
]
@@ -524,9 +524,9 @@
524524
"\n",
525525
"---\n",
526526
"\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",
528528
"\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",
530530
"\n",
531531
"_Hint_: Read about `tbl.relabeled` in the [Python Reference](https://www.data8.org/sp26/reference/) to rename columns.\n",
532532
"\n",
@@ -754,7 +754,7 @@
754754
"id": "c1c51556",
755755
"metadata": {},
756756
"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",
758758
"\n",
759759
"<img src=\"fifi.jpg\" alt=\"White dog\" width=\"300\"/>\n",
760760
"<img src=\"yoyo.jpg\" alt=\"White dog\" width=\"300\"/>\n",
@@ -1268,9 +1268,9 @@
12681268
"deletable": false
12691269
},
12701270
"source": [
1271-
"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",
12721272
"\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",
12741274
"\n",
12751275
"**Note:** Don't worry if a red warning pops up when running the cell below. You'll still be able to run the cell!"
12761276
]
@@ -1305,7 +1305,7 @@
13051305
"id": "77335fc7",
13061306
"metadata": {},
13071307
"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."
13091309
]
13101310
},
13111311
{
@@ -1470,7 +1470,7 @@
14701470
"source": [
14711471
"---\n",
14721472
"\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",
14741474
"\n",
14751475
"*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",
14761476
"\n",
@@ -1732,7 +1732,7 @@
17321732
"\n",
17331733
"*Hint 2:* Consider using `join` in your code.\n",
17341734
"\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",
17361736
"\n",
17371737
"Feel free to use the markdown cell below to plan out your answer, but you needn't fill it in.\n",
17381738
"\n",
@@ -2566,4 +2566,4 @@
25662566
},
25672567
"nbformat": 4,
25682568
"nbformat_minor": 5
2569-
}
2569+
}

0 commit comments

Comments
 (0)