Brief Analysis and Visualization of CT Poison Data

The code below was produced to accompany the Cushing/Whitney Medical Library blog post, "Poison Yesterday and Today."

In brief, the code below does the following:

  1. Imports necessary libraries (pandas, matplotlib, seaborn)
  2. Reads in data, styles columns to snake case, and previews data
  3. Slices off data of interest, i.e., where 'accidental poison' is mentioned in 'cause of death'
  4. Removes data marked 'unreliable'
  5. Combines similar data (such as all accidental poisoning due to drugs) together
  6. Visualizes the final results

Data citation: Centers for Disease Control and Prevention, National Center for Health Statistics. National Vital Statistics System, Mortality 2018-2021 on CDC WONDER Online Database, released in 2021. Data are from the Multiple Cause of Death Files, 2018-2021, as compiled from data provided by the 57 vital statistics jurisdictions through the Vital Statistics Cooperative Program. Accessed at http://wonder.cdc.gov/ucd-icd10-expanded.html on Mar 16, 2023.

_See caveats from CDC Wonder below as well.

Caveats & Notes from CDC Wonder data extract:

Caveats: Data are Suppressed when the data meet the criteria for confidentiality constraints. More information.

Death rates are flagged as Unreliable when the rate is calculated with a numerator of 20 or less. More information.

The population figures for year 2021 are single-race estimates of the July 1 resident population, from the Vintage 2021 postcensal series released by the Census Bureau on June 30, 2022. The population figures for year 2020 are single-race estimates of the July 1 resident population, from the Vintage 2020 postcensal series released by the Census Bureau on July 27, 2021. The population figures for year 2019 are single-race estimates of the July 1 resident population, from the Vintage 2019 postcensal series released by the Census Bureau on June 25, 2020. The population figures for year 2018 are single-race estimates of the July 1 resident population, from the Vintage 2018 postcensal series released by the Census Bureau on June 20, 2019.

The population figures used in the calculation of death rates for the age group 'under 1 year' are the estimates of the resident population that is under one year of age. More information.

Beginning with the 2018 data, changes have been implemented that affect the counts for ICD-10 cause of death codes O00-O99 compared to previous practice. In addition, data for the cause of death codes O00-O99 for 2003 through 2017 reflect differences in information available to individual states and probable errors. Caution should be used in interpreting these data. More information can be found at: https://www.cdc.gov/nchs/maternal-mortality/.

On March 11, 2021, the 2019 mortality data on CDC WONDER was updated with the 2019 mortality data updated by NCHS on March 4, 2021 to include corrected information for residents of Texas affecting 5 records previously coded to cause code *U01.4, Terrorism involving firearms (homicide). The underlying and multiple cause of death codes for 5 records were corrected in the 2019 data. Underlying and multiple cause of death codes for those 5 records were recoded to Assault (homicide) by other and unspecified firearm discharge, ICD-10 code X95. The corrected final death records replaces the data released on December 22, 2020.

Changes to cause of death classification affect reporting trends. More information.

Help:
See Underlying Cause of Death, 2018-2021, Single Race Documentation for more information.

Query Date: Mar 16, 2023 2:51:43 PM

Query Criteria: ICD-10 Codes: V01-Y89 (External causes of morbidity and mortality) States: Connecticut (09) Year/Month: 2019; 2020; 2021 Group By: Cause of death Show Totals: True Show Zero Values: False Show Suppressed: False Calculate Rates Per: 100,000 Rate Options: Default intercensal populations for years 2001-2009 (except Infant Age Groups)