This project provides a Python script and a comprehensive dataset for generating pyramid charts that visualize the top 30 causes of death in Mexico, disaggregated by sex. The visualizations are based on the ICD-10 Mortality Tabulation List 1 and can be customized to analyze different states, years, and demographic factors.
Key Features:
Customizable Parameters:
Choose between analyzing the year of death occurrence or the year the death was registered.
Specify whether to use the state of death registration or the state of residence of the deceased.
Comprehensive Dataset:
Contains over 16 million registered deaths in Mexico from 1998 to 2023.
Each record includes the following fields:
Year of registration
Year of death
State of registration
State of residence
Sex
Age
ICD-10 4-character code
Mortality Tabulation List 1 code
Reproducible Outputs:
Generates high-quality pyramid charts, such as the provided sample figure, highlighting sex-disaggregated statistics for specified states and years.
A sample chart is included in this project to demonstrate the script's output.
Ease of Use:
Includes a requirements.txt file for quick installation of dependencies.
Data Source:
The dataset was sourced from the National Institute of Statistics and Geography (INEGI): INEGI EDR Microdata.
This project is a valuable resource for researchers, policymakers, and data analysts seeking to explore mortality trends in Mexico over time, with a focus on geographical and demographic variations.