cancer icon

Cancer Python Library

From the CORGIS Dataset Project

By Dennis Kafura
Version 1.0.0, created 6/27/2019
Tags: cancer, cancer deaths, medical, health

Overview

Information about the rates of cancer deaths in each state is reported. The data shows the total rate as well as rates based on sex, age, and race. Rates are also shown for three specific kinds of cancer: breast cancer, colorectal cancer, and lung cancer.

https://www.socialexplorer.com/explore-tables

Explore Structure

Each row represents report on cancer for a specific state/time period/demographic subgroup.

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"State" str "Alabama" The name of a U.S. State (e.g., Virginia)
"Total" dict { }
"Rates" dict { }
"Types" dict { }
Key Type Example Value Description
"Rate" float 214.2 Total Cancer Deaths (Rate per 100,000 Population, 2007-2013) 214.2
"Number" float 71529.0 Total Cancer Deaths (2007-2013)
"Population" float 33387205.0 Cumulative Population (Denominator Total_Cancer deaths total_) 2007-2013
Key Type Example Value Description
"Age" dict { }
"Age and Sex" dict { }
"Race" dict { }
"Race and Sex" dict { }
Key Type Example Value Description
"< 18" float 2.0 Total Cancer Deaths (Under 18 Years, Rate per 100,000 Population, 2007-2013)
"18-45" float 18.5 Total Cancer Deaths (18 to 44 Years, Rate per 100,000 Population, 2007-2013)
"45-64" float 244.7 Total Cancer Deaths (45 to 64 Years, Rate per 100,000 Population, 2007-2013)
"> 64" float 1017.8 Total Cancer Deaths (65 Years and Over, Rate per 100,000 Population, 2007-2013)
Key Type Example Value Description
"Female" dict { }
"Male" dict { }
Key Type Example Value Description
"< 18" float 2.0 Female under 18
"18 - 45" float 20.1 Female 18 - 45
"45 - 64" float 201.0 Female 45 to 64 Years
"> 64" float 803.6 Female 65 Years and Over
Key Type Example Value Description
"< 18" float 2.1 Male under 18
"18 - 45" float 16.8 Male 18 - 45
"45 - 64" float 291.5 Male 45 to 64 Years
"> 64" float 1308.6 Male 65 Years and Over
Key Type Example Value Description
"White" float 186.1 Total Cancer Deaths (White, Rate per 100,000 Population, 2007-2013)
"White non-Hispanic" float 187.5 Total Cancer Deaths (White non-Hispanic, Rate per 100,000 Population, 2007-2013)
"Black" float 216.1 Total Cancer Deaths (Black or African American, Rate per 100,000 Population, 2007-2013)
"Asian" float 81.3 Total Cancer Deaths (Asian or Pacific Islander, Rate per 100,000 Population, 2007-2013)
"Indigenous" float 69.9 Total Cancer Deaths (American Indian or Alaska Native, Rate per 100,000 Population, 2007-2013)
"Hispanic" float 66.5 Hispanic or Latino
Key Type Example Value Description
"Female" dict { }
"Male" dict { }
Key Type Example Value Description
"White" float 149.2 Female: White
"White non-Hispanic" float 150.2 Female: White non-Hispanic
"Black" float 167.2 Female: Black or African American
"Black non-Hispanic" float 167.9 Female: Black or African American non-Hispanic
"Asian" float 84.9 Female: Asian or Pacific Islander
"Indigenous" float 53.8 Female: American Indian or Alaska Native
"Hispanic" float 58.3 Female: Hispanic or Latino
Key Type Example Value Description
"White" float 237.1 Male: White
"White non-Hispanic" float 239.2 Male: White non-Hispanic
"Black" float 297.9 Male: Black or African American
"Black non-Hispanic" float 299.2 Male: Black or African American non-Hispanic
"Asian" float 75.7 Male: Asian or Pacific Islander
"Indigenous" float 88.3 Male: American Indian or Alaska Native
"Hispanic" float 77.1 Male: Hispanic or Latino
Key Type Example Value Description
"Breast" dict { }
"Colorectal" dict { }
"Lung" dict { }
Key Type Example Value Description
"Total" float 27.4 Breast Cancer Deaths (Rate per 100,000 Population, 2007-2013)
"Age" dict { }
"Race" dict { }
Key Type Example Value Description
"18 - 44" float 5.1 18 to 44 Years
"45 - 64" float 39.8 45 to 64 Years
"> 64" float 95.7 65 Years and Over
Key Type Example Value Description
"White" float 20.5 White
"White non-Hispanic " float 20.6 White non-Hispanic
"Black" float 30.3 Black or African American
"Black non-Hispanic" float 30.4 Black or African American non-Hispanic
"Asian" float 0.0 Asian or Pacific Islander
"Indigenous" float 0.0 American Indian or Alaska Native
"Hispanic" float 0.0 Hispanic or Latino
Key Type Example Value Description
"Total" float 19.4 Colorectal Cancer Deaths (Rate per 100,000 Population, 2007-2013)
"Age and Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" dict { }
"Male" dict { }
Key Type Example Value Description
"18 - 44" float 1.6 Female 18 to 44 Years
"45 - 64" float 18.0 Female 45 to 64 Years
"> 64" float 78.4 Female 65 Years and Over
Key Type Example Value Description
"18 - 44" float 2.3 Male 18 to 44 Years
"45 - 64" float 28.7 Male 45 to 64 Years
"> 64" float 106.0 Male 65 Years and Over
Key Type Example Value Description
"White" float 15.9 White
"White non-Hispanic" float 16.0 White non-Hispanic
"Black" float 24.4 Black or African American
"Black non-Hispanic" float 24.5 Black or African American non-Hispanic
"Asian" float 0.0 Asian or Pacific Islander
"Indigenous" float 0.0 American Indian or Alaska Native
"Hispanic" float 5.7 Hispanic or Latino
Key Type Example Value Description
"Total" float 66.4 Lung Cancer Deaths (Rate per 100,000 Population, 2007-2013)
"Age and Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" dict { }
"Male" dict { }
Key Type Example Value Description
"18 - 44" float 1.7 Female 18 to 44 Years
"45 - 64" float 54.8 Female 45 to 64 Years
"> 64" float 221.7 Female 65 Years and Over
Key Type Example Value Description
"18 - 44" float 2.4 Male 18 to 44 Years
"45 - 64" float 102.9 Male 45 to 64 Years
"> 64" float 457.4 Male 65 Years and Over
Key Type Example Value Description
"White" float 59.9 White
"White non-Hispanic" float 60.4 White non-Hispanic
"Black" float 52.6 Black or African American
"Black non-Hispanic" float 52.8 Black or African American non-Hispanic
"Asian" float 23.0 Asian or Pacific Islander
"Indigenous" float 22.9 American Indian or Alaska Native
"Hispanic" float 14.8 Hispanic or Latino

Downloads

Download all of the following files.

  1. cancer.py
  2. cancer.data

Usage

import cancer
cancer_reports = cancer.get_cancer_reports()

Documentation

get_cancer_reports()
Returns a list of dictionaries representing Cancer Reports.