Answered You can hire a professional tutor to get the answer.

QUESTION

Using Python Jupyter Notebook, Make a function fertility_over_time that takes the Alpha-3 code of a country and a start year.

Using Python Jupyter Notebook, Make a function fertility_over_time that takes the Alpha-3 code of a country and a start year. It returns a two-column table with labels "Year" and "Children per woman" that can be used to generate a line chart of the country's fertility rate each year, starting at

the start year. The plot should include the start year and all later years that appear in the fertility table.

Then, in the next cell, call your fertility_over_time function on the Alpha-3 code for Bangladesh and the year 1970 in order to plot how Bangladesh's fertility rate has changed since 1970. Note that the function fertility_over_time should not return the plot itself The expression that draws the line plot is provided for you; please don't change it.

In [ ]:

def fertility_over_time(country, start):

"""Creat a two-column table that describes a country's total fertility rate each year."""

country_fertility = ...

country_fertility_after_start = ...

...

In [ ]:

bangladesh_code = ...

fertility_over_time(bangladesh_code, 1970).plot(0, 1) # You should *not* change this line.

In [ ]:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question