opioids icon

Opioids Python Library

From the CORGIS Dataset Project

By Dennis Kafura, Joung Min Choi, Bo Guan
Version 2.0.0, created 10/27/2021
Tags: opioids, drug deaths, heroin, cocaine, drug overdose

Overview

All opioids are chemically related and interact with opioid receptors on nerve cells in the body and brain. Opioid pain relievers can be misused (taken in a different way or in a larger quantity than prescribed, or taken without a doctor’s prescription). Regular use - even as prescribed by a doctor - can lead to dependence and, when misused, opioid pain relievers can lead to addiction, overdose incidents, and deaths. The National Institute on Drug Abuse collects and analyzes data about deaths from opioid abuse. This data set reports on data from 1999-2019.

https://www.drugabuse.gov/related-topics/trends-statistics/overdose-death-rates

Explore Structure

Each row represents opioid death report.

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"Year" int 1999 The year for which the data is reported (1999-2019)
"Number" dict { }
"Rate" dict { }
Key Type Example Value Description
"All" int 16849 Total number of overdose deaths from all drugs
"Opioid" dict { }
Key Type Example Value Description
"Any" int 8050 Total number of overdose deaths due to any Opioid drug
"Prescription" int 3442 Total number of overdose deaths due to a prescription Opioid drug
"Synthetic" int 730 Total number of overdose deaths due to a synthetic Opioid drug (e.g. fentanyl)
"Heroin" int 1960 Total number of overdose deaths due to heroin
"Cocaine" int 3822 Total number of overdose deaths due to cocaine
Key Type Example Value Description
"All" dict { }
"Opioid" dict { }
Key Type Example Value Description
"Total" float 6.1 The rate of overdose deaths due to all drugs per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 3.9 The rate of overdose deaths among women due to all drugs per 100,000 people
"Male" float 8.2 The rate of overdose deaths among men due to all drugs per 100,000 people
Key Type Example Value Description
"White" float 6.2 The rate of overdose deaths among White non-Hispanic persons due to all drugs per 100,000 people
"Black" float 7.5 The rate of overdose deaths among Black non-Hispanic persons from all drugs per 100,000 people
"Asian or Pacific Islander" float 1.2 The rate of overdose deaths among Asian or Pacific Islander non-Hispanic persons from all drugs per 100,000 people
"Hispanic" float 5.4 The rate of overdose deaths among Hispanic persons due to all drugs per 100,000 people
"American Indian or Alaska Native" float 6.0 The rate of overdose deaths among American Indian or Alaska Native non-Hispanic persons due to all drugs per 100,000 people
Key Type Example Value Description
"Any" dict { }
"Prescription" dict { }
"Synthetic" dict { }
"Heroin" dict { }
"Cocaine" dict { }
Key Type Example Value Description
"Total" float 2.9 The rate of overdose deaths due to any Opioid drug per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 1.4 The rate of overdose deaths among women due to any Opioid drug per 100,000 people
"Male" float 4.3 The rate of overdose deaths among men due to any Opioid drug per 100,000 people
Key Type Example Value Description
"White" float 2.8 The rate of overdose deaths among White non-Hispanic persons due to any Opioid drug per 100,000 people
"Black" float 3.5 The rate of overdose deaths among Asian or Pacific Islander non-Hispanic persons due to any Opioid drug per 100,000 people
"Asian or Pacific Islander" float 0.3 The rate of overdose deaths among Black non-Hispanic persons due to any Opioid drug per 100,001 people
"Hispanic" float 3.5 The rate of overdose deaths among Hispanic persons due to any Opioid drug per 100,000 people
"American Indian or Alaska Native" float 2.9 The rate of overdose deaths among American Indian or Alaska Native non-Hispanic persons due to any Opioid drug per 100,000 people
Key Type Example Value Description
"Total" float 1.2 The rate of overdose deaths due to a prescription Opioid drug per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 0.7 The rate of overdose deaths among women due to a prescription Opioid drug per 100,000 people
"Male" float 1.7 The rate of overdose deaths among men due to a prescription Opioid drug per 100,000 people
Key Type Example Value Description
"White" float 1.3 The rate of overdose deaths among White non-Hispanic persons due to a prescription Opioid drug per 100,000 people
"Black" float 0.8 The rate of overdose deaths among Black non-Hispanic persons due to a prescription Opioid drug per 100,000 people
"Hispanic" float 1.6 The rate of overdose deaths among Hispanic persons due to a prescription Opioid drug per 100,000 people
"American Indian or Alaska Native" float 1.3 The rate of overdose deaths among American Indian or Alaska Native non-Hispanic persons due to a prescription Opioid drug per 100,001 people
Key Type Example Value Description
"Total" float 0.3 The rate of overdose deaths due to a synthetic Opioid drug per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 0.2 The rate of overdose deaths among women due to a synthetic Opioid drug per 100,000 people
"Male" float 0.3 The rate of overdose deaths among men due to a synthetic Opioid drug per 100,000 people
Key Type Example Value Description
"White" float 0.3 The rate of overdose deaths among White non-Hispanic persons due to a synthetic Opioid drug per 100,000 people
"Black" float 0.1 The rate of overdose deaths among Black non-Hispanic persons due to a synthetic Opioid drug per 100,000 people
"Hispanic" float 0.1 The rate of overdose deaths among Hispanic persons due to a synthetic Opioid drug per 100,000 people
Key Type Example Value Description
"Total" float 0.7 The rate of overdose deaths due to heroin per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 0.2 The rate of overdose deaths among women due to heroin per 100,000 people
"Male" float 1.2 The rate of overdose deaths among men due to heroin per 100,000 people
Key Type Example Value Description
"White" float 0.7 The rate of overdose deaths among White non-Hispanic persons due to heroin per 100,000 people
"Black" float 0.8 The rate of overdose deaths among Black non-Hispanic persons due to heroin per 100,000 people
"Hispanic" float 1.1 The rate of overdose deaths among American Indian or Alaska Native non-Hispanic persons due to heroin per 100,000 people
Key Type Example Value Description
"Total" float 1.4 The rate of overdose deaths due to cocaine per 100,000 people
"Sex" dict { }
"Race" dict { }
Key Type Example Value Description
"Female" float 0.6 The rate of overdose deaths among women due to cocaine per 100,000 people
"Male" float 2.1 The rate of overdose deaths among men due to cocaine per 100,000 people
Key Type Example Value Description
"White" float 1.0 The rate of overdose deaths among White non-Hispanic persons due to cocaine per 100,000 people
"Black" float 3.7 The rate of overdose deaths among Black non-Hispanic persons due to cocaine per 100,000 people
"Hispanic" float 1.7 The rate of overdose deaths among American Indian or Alaska Native non-Hispanic persons due to cocaine per 100,000 people
"American Indian or Alaska Native" float 0.9 The rate of overdose deaths among Hispanic persons due to cocaine per 100,001 people

Downloads

Download all of the following files.

  1. opioids.py
  2. opioids.data

Usage

import opioids
opioid_deaths = opioids.get_opioid_deaths()

Documentation

get_opioid_deaths()
Returns a list of dictionaries representing Opioid Deaths.