get_age_distribution#

class get_age_distribution(location=None, year=None, total_pop_file=None, age_datafile=None)[source]#

Load age distribution for a given country or countries.

Parameters:
  • location (str) – name of the country to load the age distribution for

  • year (int) – year to load the age distribution for

  • total_pop_file (str) – optional filepath to save total population size for every year

Returns:

Numpy array of age distributions, or dict if multiple locations

Return type:

age_data (array)