This repository countains the source code and data for the DW Data story about road traffic deaths in Brazil.
You can read the story in Portuguese. There's also a Spanish version of this story that focus on Latin American data.
This story consists of an analysis of the historical evolution of Brazilian road traffic deaths, which are also compared to worldwide trends.
For the Brazilian road traffic deaths, we used data from the Ministry of Health, taken from the Datasus mortality monitoring platform. The 2000-2021 population estimates were also taken from Datasus. For the 2022 population, we performed a simple linear regression with the 2000-2021 population estimates.
Data about the composition of the Brazilian fleet comes from the Ministry of Transportation.
For other countries, figures come from the World Health Organization database.
Income level and regional country classifcations come from the World Bank.
The code
directory contains the Jupyter Notebooks with the step-by-step data analysis.
The data
directory contains the data files that were used in the analysis, already manually cleaned.
The output
repository contains the processed CSV files which were used to create Datawrapper visualizations.