drugs icon

Drugs Python Library

From the CORGIS Dataset Project

By Austin Cory Bart acbart@vt.edu, Ryan Whitcomb rwhit94@vt.edu, Joung Min Choi, Bo Guan
Version 3.0.0, created 10/29/2021
Tags: drugs, substances, drug usage

Overview

This dataset is about substance abuse (cigarettes, marijuana, cocaine, alcohol) among different age groups and states. Data was collected from individual states as part of the NSDUH study. The data ranges from 2002 to 2018. Both totals (in thousands of people) and rates (as a percentage of the population) are given.

https://pdas.samhsa.gov/#/

Explore Structure

Each row represents Reports of drug use in a state on a given state..

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"State" str "Alabama" The state that this report was created for.
"Year" int 2002 The year that this report was created for.
"Population" dict { }
"Totals" dict { }
"Rates" dict { }
Key Type Example Value Description
"12-17" int 380805 Estimated population for this age group (12 to 17 year olds) in this year from US Census data for this state.
"18-25" int 499453 Estimated population for this age group (18 to 25 year olds) in this year from US Census data for this state.
"26+" int 2812905 Estimated population for this age group (26 years old or older) in this year from US Census data for this state.
Key Type Example Value Description
"Alcohol" dict { }
"Tobacco" dict { }
"Illicit Drugs" dict { }
"Marijuana" dict { }
Key Type Example Value Description
"Use Disorder Past Year" dict { }
"Use Past Month" dict { }
Key Type Example Value Description
"12-17" int 18 The estimated number of people (in thousands) that have a use disorder on alcohol in the past year among this age group.
"18-25" int 68 The estimated number of people (in thousands) that have a use disorder on alcohol in the past year among this age group.
"26+" int 138 The estimated number of people (in thousands) that have a use disorder on alcohol in the past year among this age group.
Key Type Example Value Description
"Alcohol" dict { }
"Tobacco" dict { }
"Illicit Drugs" dict { }
"Marijuana" dict { }
Key Type Example Value Description
"Use Disorder Past Year" dict { }
"Use Past Month" dict { }
Key Type Example Value Description
"12-17" float 48.336 Amount per 1000 people that has a use disorder on alcohol in the past year among this age group.
"18-25" float 136.49 Amount per 1000 people that has a use disorder on alcohol in the past year among this age group.
"26+" float 49.068 Amount per 1000 people that has a use disorder on alcohol in the past year among this age group.
Key Type Example Value Description
"12-17" int 57 The estimated number of people (in thousands) that have used alcohol in the past month, among this age group.
"18-25" int 254 The estimated number of people (in thousands) that have used alcohol in the past month, among this age group.
"26+" int 1048 The estimated number of people (in thousands) that have used alcohol in the past month, among this age group.
Key Type Example Value Description
"12-17" float 150.033 Amount per 1000 people that has used alcohol in the past month, among this age group.
"18-25" float 509.551 Amount per 1000 people that has used alcohol in the past month, among this age group.
"26+" float 372.70300000000003 Amount per 1000 people that has used alcohol in the past month, among this age group.
Key Type Example Value Description
"Cigarette Past Month" dict { }
"Use Past Month" dict { }
Key Type Example Value Description
"12-17" int 52 The estimated number of people (in thousands) that have used Cigarettes in the past month, among this age group.
"18-25" int 196 The estimated number of people (in thousands) that have used Cigarettes in the past month, among this age group.
"26+" int 728 The estimated number of people (in thousands) that have used Cigarettes in the past month, among this age group.
Key Type Example Value Description
"Cigarette Past Month" dict { }
"Use Past Month" dict { }
Key Type Example Value Description
"12-17" float 136.906 Amount per 1000 people that has used Cigarettes in the past month, among this age group.
"18-25" float 392.404 Amount per 1000 people that has used Cigarettes in the past month, among this age group.
"26+" float 258.844 Amount per 1000 people that has used Cigarettes in the past month, among this age group.
Key Type Example Value Description
"Cocaine Used Past Year" dict { }
Key Type Example Value Description
"12-17" int 6 The estimated number of people (in thousands) that have used Cocaine in the past year among this age group.
"18-25" int 27 The estimated number of people (in thousands) that have used Cocaine in the past year among this age group.
"26+" int 49 The estimated number of people (in thousands) that have used Cocaine in the past year among this age group.
Key Type Example Value Description
"Cocaine Used Past Year" dict { }
Key Type Example Value Description
"12-17" float 16.556 Amount per 1000 people that has used Cocaine in the past year among this age group.
"18-25" float 54.892 Amount per 1000 people that has used Cocaine in the past year among this age group.
"26+" float 17.513 Amount per 1000 people that has used Cocaine in the past year among this age group.
Key Type Example Value Description
"New Users" dict { }
"Used Past Month" dict { }
"Used Past Year" dict { }
Key Type Example Value Description
"12-17" int 20 The estimated number of people (in thousands) that have started using Marijuana in the past year among this age group.
"18-25" int 18 The estimated number of people (in thousands) that have started using Marijuana in the past year among this age group.
"26+" int 2 The estimated number of people (in thousands) that have started using Marijuana in the past year among this age group.
Key Type Example Value Description
"New Users" dict { }
"Used Past Month" dict { }
"Used Past Year" dict { }
Key Type Example Value Description
"12-17" float 59.732 Amount per 1000 people that has started using Marijuana in the past year among this age group.
"18-25" float 62.324999999999996 Amount per 1000 people that has started using Marijuana in the past year among this age group.
"26+" float 0.914 Amount per 1000 people that has started using Marijuana in the past year among this age group.
Key Type Example Value Description
"12-17" int 24 The estimated number of people (in thousands) that have used Marijuana in the past month among this age group.
"18-25" int 62 The estimated number of people (in thousands) that have used Marijuana in the past month among this age group.
"26+" int 73 The estimated number of people (in thousands) that have used Marijuana in the past month among this age group.
Key Type Example Value Description
"12-17" float 63.662 Amount per 1000 people that has used Marijuana in the past month among this age group.
"18-25" float 124.67200000000001 Amount per 1000 people that has used Marijuana in the past month among this age group.
"26+" float 25.967 Amount per 1000 people that has used Marijuana in the past month among this age group.
Key Type Example Value Description
"12-17" int 49 The estimated number of people (in thousands) that have used Marijuana in the past year among this age group.
"18-25" int 119 The estimated number of people (in thousands) that have used Marijuana in the past year among this age group.
"26+" int 141 The estimated number of people (in thousands) that have used Marijuana in the past year among this age group.
Key Type Example Value Description
"12-17" float 127.53500000000001 Amount per 1000 people that has used Marijuana in the past year among this age group.
"18-25" float 237.88 Amount per 1000 people that has used Marijuana in the past year among this age group.
"26+" float 50.275 Amount per 1000 people that has used Marijuana in the past year among this age group.
Key Type Example Value Description
"12-17" int 63 The estimated number of people (in thousands) that have used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.
"18-25" int 226 The estimated number of people (in thousands) that have used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.
"26+" int 930 The estimated number of people (in thousands) that have used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.
Key Type Example Value Description
"12-17" float 166.578 Amount per 1000 people that has used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.
"18-25" float 451.976 Amount per 1000 people that has used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.
"26+" float 330.659 Amount per 1000 people that has used Tobacco products in the past month, among this age group. Tobacco Products include cigarettes, smokeless tobacco (i.e., chewing tobacco or snuff), cigars, or pipe tobacco.

Downloads

Download all of the following files.

  1. drugs.py
  2. drugs.data

Usage

import drugs
report = drugs.get_report()

Documentation

get_report()
Returns a list of dictionaries representing report.