Please see an attachment for details
Image transcription text ... (10 rows omitted)
: grader . check ("q2_5")
1 : q2_5 passed!
Question 6. Write a function called poverty_timeline that takes the name of a country as its argument. It should draw a line plot of the number of people
living in poverty in that country with time on the horizontal axis. The line plot should have a point for each row in the poverty table for that country. To
compute the population living in poverty from a poverty percentage, multiply by the population of the country in that year.
Hint: This question is long. Feel free to create cells and experiment.: def poverty_timeline (country ) :
"Draw a timeline of people living in extreme poverty in a country.""
geo = . . .
# This solution will take multiple lines of code. Use as many as you need
Finally, draw the timelines below to see how the world is changing. You can check your work by comparing your graphs to the ones on gapminder.org
(https://tools-legacy.gapminder.org/tools/#stateentitiesshow country/[email protected]=ind;;&marker
axis, which=number_of people in poverty&scaleType=linear&spaceRef:null:":&chart-type=linechart): poverty_timeline( ' India' )
poverty_timeline( 'Nigeria' )
poverty_timeline( 'China' )
poverty_timeline( 'United States' )
Although the number of people living in extreme poverty has been increasing in Nigeria and the United States, the massive decreases in China and India
have shaped the overall trend that extreme poverty is decreasing worldwide, both in percentage and in absolute number.
To learn more, watch Hans Rosling in a 2015 film (https://www.gapminder.org/videos/dont-panic-end-poverty/) about the UN goal of eradicating extreme
poverty from the world.
Below, we've also added an interactive dropdown menu for you to visualize poverty_timeline graphs for other countries. Note that each dropdown menu
selection may take a few seconds to run.
MacBook Air
882
* 00
- O
89 LO
# m
C
O
I
LL
A
V
Z
CO
X
96
command
option
mmand
Unlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Subscribe to view answers ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet.
rem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dap
gue
gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesquea. Fusce dui lectus,ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laor
gue
gue