Overview

The UNAIDS Organization is an entity of the United Nations that looks to reduce the transmission of AIDS and provide resources to those currently affected by the disease. The following data set contains information on the number of those affected by the disease, new cases of the disease being reported, and AIDS-related deaths for a large set of countries over the course of 1990 - 2015.

http://aidsinfo.unaids.org/

Explore Structure




Index Type Example Value
0 dict { }
... ... ...
Key Type Example Value Comment
"Incidence Rate Among Adults" float 0.0058 The number of reported cases of AIDS in adults (15-49 years old).
"Male Adults" int 659 The number of reported cases of AIDS in male adults (15+ years old).
"All Ages" int 968 The total number of reported cases of AIDS in this year.
"Children" int 62 The number of reported cases of AIDS in children (0-14 years old).
"Female Adults" float 247.0 The number of reported cases of AIDS in female adults (15+ years old).
"Adults" int 906 The number of reported cases of AIDS in all adults (15+ years old).
Key Type Example Value Comment
"Male Adults" int 4784 The number of Adult Men (greater than 15 years old) suffering from AIDS in this year.
"Total" int 6931 The total number of people suffering from AIDS in this year.
"Children" int 233 The number of Children (less than 15 years old) suffering from AIDS in this year.
"Female Adults" int 1914 The number of Adult Women (greater than 15 years old) suffering from AIDS in this year.
"Adults" int 6698 The number of Adults (greater than 15 years old) suffering from AIDS in this year.
Key Type Example Value Comment
"Young Men" float 0.0127 The percentage of the population of Young Men (15-24 years old) suffering from AIDS in this year.
"Adults" float 0.0395 The percentage of the population of Young Men (15-49 years old) suffering from AIDS in this year.
"Young Women" float 0.0108 The percentage of the population of Young Women (15-24 years old) suffering from AIDS in this year.
Key Type Example Value Comment
"Country" str "Afghanistan" The name of the country.
"Data" dict { }
"Year" int 2015 4-digit year
Key Type Example Value Comment
"HIV Prevalence" dict { }
"People Living with HIV" dict { }
"New HIV Infections" dict { }
"AIDS-Related Deaths" dict { }

Downloads

Download all of the following files.

Usage

This library has 3 functions you can use.
import aids
list_of_report = aids.get_reports()
list_of_report = aids.get_reports_by_year(1990)
list_of_report = aids.get_reports_by_country("Afghanistan")
Additionally, some of the functions can return a sample of the Big Data using an extra argument. If you use this sampled Big Data, it may be much faster. When you are sure your code is correct, you can remove the argument to use the full dataset.
import aids
# These may be slow!
list_of_report = aids.get_reports(test=True)
list_of_report = aids.get_reports_by_year(1990, test=True)
list_of_report = aids.get_reports_by_country("Afghanistan", test=True)

Documentation

 aids.get_reports(test=False)

Returns aids reports from the dataset.

 aids.get_reports_by_year(year, test=False)

Given a year, returns all the aids reports for that year in the database.

 aids.get_reports_by_country(country, test=False)

Given a country, returns all the aids reports for that country in the database.