Question: Assign latest poverty to a three-column table with one row for each country that appears in the poverty table. The first column should contain

 

Assign latest poverty to a three-column table with one row for each country that appears in the poverty table. The first column should contain the 3-letter code for the country. The second column should contain the most recent year for which an extreme poverty rate is available for the country. The third column should contain the poverty rate in that year. Do not change the last line, so that the labels of your table are set correctly. Question 2: Using both latest poverty and population, make a four-column table called recent_poverty_total with one row for each country in latest poverty. The four columns should have the following labels and contents: Question 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 find a number that is above the 2018 global estimate of 8%, since many country-specific poverty rates are older than 2018. 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.. Hint: think about how group works: it does a sequential search of the table (from top to bottom) and collects values in the array in the order in which they appear, and then applies a function to that array. The first function may be helpful, but you are not required to use it.Using both latest poverty and population, make a four-column table called recent_poverty_total with one row for each country in latest poverty. The four columns should have the following labels and contents: 1. geo contains the 3-letter country code, 2. poverty_percent contains the most recent poverty percent, 3. population total contains the population of the country in 2010, 4. poverty_total contains the number of people in poverty rounded to the nearest integer, based on the 2010 population and most recent poverty rate.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Create the latest poverty table Assuming you have data tables named poverty and population and the l... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

100% Satisfaction Guaranteed-or Get a Refund!

Step: 2 Unlock
Step: 3 Unlock
  • tick Icon Access 30 Million+ textbook solutions.
  • tick Icon Ask unlimited questions from AI Tutors.
  • tick Icon Order free textbooks.
  • tick Icon 100% Satisfaction Guaranteed-or Get a Refund!

Students Have Also Explored These Related Programming Questions!

Related Book

Ask a Question and Get Instant Help