Skip to content

This repo has data and code for the May 4 (online) and May 5, 2019 (print) St. Louis Post-Dispatch story "With fewer park employees than there are parks in St. Louis, corners get cut".

Notifications You must be signed in to change notification settings

PostDispatchInteractive/parks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

With fewer park employees than there are parks in St. Louis, corners get cut

What is this?

This repo contains data and code used for the May 4 (online) and May 5, 2019 (print) St. Louis Post-Dispatch story "With fewer park employees than there are parks in St. Louis, corners get cut". The story was reported by Jesse Bogan with data analysis done by Janelle O'Dea.

The instructions below will enable you to reproduce the results of our data analysis on your own computer. You can also see a static version of our code and results if you would rather avoid installing libraries and using Python.

Assumptions

The following things are assumed to be true in this documentation.

How to reproduce

To reproduce this data analysis, you'll need a working knowledge of virtual environments and Python.

First, enter the following commands on the command line to create a virtual environment and install the required libraries:

mkvirtualenv parks --python=python3
pip install -r requirements.txt

Next, extract the CSV files from the Archive.zip file. (Note: If the files don't automatically extract into a subfolder called Archive, then you should create that subfolder and move the CSVs into it.)

Finally, it's time to open the Jupyter Notebook file parks.ipynb, which shows the filtering and sorting we did to calculate the data points reported in the story. You can open the notebook with the following command, which should open a new window in your browser:

jupyter notebook parks.ipynb

Data caveats

The Archive.zip file contains the data used for this analysis, as downloaded on April 30, 2019 from the Service Requests Dataset Distribution page on the St. Louis Open Data portal.

The data reflect complaints submitted by St. Louis city residents by phone, web, email or Twitter. Each row reflects one complaint.

The data dictionary can be found at the same Open Data portal link above, under the heading "Field Definitions."

The complaint data reflects only what has been reported to the city. Other issues at parks may exist and nobody calls them in.

There is a unique identifier for each complaint, REQUESTID, but there is not a unique identifier for the person who reported the complaint. So, it's not possible to know if the same person made all of the complaints about a particular park or if various people did.

About

This repo has data and code for the May 4 (online) and May 5, 2019 (print) St. Louis Post-Dispatch story "With fewer park employees than there are parks in St. Louis, corners get cut".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •