This repo contains data and code used for the Aug. 7 (online and print) St. Louis Post-Dispatch story "Racial disparities in income and poverty remain stark, and in some cases, are getting worse". The story was reported by Jacob Barker with data analysis done by Janelle O'Dea.
The following things are assumed to be true in this documentation.
- You are running OSX.
- You are using Python 2.7. (Probably the version that came OSX.)
- You have virtualenv and virtualenvwrapper installed and working.
To reproduce this data analysis, you'll need a working knowledge of virtual environments and Python.
You'll need the libraries as specified in the requirements.txt
file. To install the libraries, change into the appraisals
directory, turn on your virtual environment and run the Terminal command pip install -r requirements.txt
.
Extract the data from the .zip
file.
The code in the Jupyter Notebook file shows the filtering and sorting that was done to get the data points reported in the story. To see how we arrived at the data, run the code in the Jupyter Notebook file appraisal_changes.ipynb
.
The Archive.zip
file contains the data used for this analysis. The 2019, 2015 and 2013 data are available on the city of St. Louis Open Data portal. The Post-Dispatch obtained the 2017 data through a Sunshine request to the St. Louis Assessor.