Overview

This library holds data about reports of diseases in America.

Explore Structure




Index Type Example Value
0 dict { }
... ... ...
Key Type Example Value Comment
"loc" str "ALABAMA"
"number" int 8843
"disease" str "MEASLES"
"increase" float 334.99
"year" int 1928
"population" int 2640000

Downloads

Download all of the following files.

Usage

This library has 4 functions you can use.
import health
list_of_report = health.get_reports_by_year(1990)
list_of_report = health.get_reports_by_disease("'MUMPS'")
list_of_report = health.get_reports_by_location("'Delaware'")
list_of_report = health.get_all_reports()
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 health
# These may be slow!
list_of_report = health.get_reports_by_year(1990, test=True)
list_of_report = health.get_reports_by_disease("'MUMPS'", test=True)
list_of_report = health.get_reports_by_location("'Delaware'", test=True)
list_of_report = health.get_all_reports(test=True)

Documentation

 health.get_reports_by_year(year, test=False)

Returns information about the status of disease for the given year, from 1928 to 2011.

 health.get_reports_by_disease(disease, test=False)

Returns information about the status of disease for the given disease.

 health.get_reports_by_location(location, test=False)

Returns information about the status of disease for the given location.

 health.get_all_reports(test=False)

Returns information about the status of disease for all locations, diseases, and years.