The Brownsville project is a set of tools and codebooks that recompile, merges, filters, and transforms a set of datasets representing complaints over the Brownsville area.
The Brownsville project includes the Brownsville API
, a set of Python modules that ensure that the dataset is up to date. Furthermore, this API acts as an interface between the clean brownsville.csv
dataset and the user. A current clean version of the dataset, along with analysis, can be found in the following locations of the repository:
data/brownsville/brownsville.csv
Cleaned dataset containing complaints from the Brownsville area, with building information attachedBrownsville API dataset analysis and visualizations.ipynb
Analysis of nature of complaints in the Brownsville areabuilding age and size analysis.ipynb
Analysis of building age/sizes and relationship to complaintsbrownsville.html
Static version of the map displaying heatmap of complaints, and individual building summaries of complaints and typography
This section will guide you on how to get the project running.
- Git client
- Python
- Anaconda
- Open the command prompt using + R button and writing
cmd
in the run window. If you are using mac, open terminal.
- Clone the repository by typing in the following command:
git clone https://github.com/alixlm19/Brownsville-project.git
- Locate the cloned repository and copy its path. After this, paste the path to the command prompt/terminal using the following command:
cd path/to/cloned/repository
Note: on Windows, you can right click and select Open in Windows Terminal
(Only works if terminal is already installed)
- Install the Python dependencies typing in the command prompt/terminal the following command:
pip install -r requirements.txt
This project requires a set of app tokens that ensure that the Brownsville API
can communicate with some of the services required to function properly. To obtain the app tokens, follow these steps:
-
Open the
config.yaml
file using any text editor. Once opened, the file should look like this:Important note: do NOT change the spaces in the file; only change the text inside the double quoutes. Adding or deleting spaces outside of the quoutes can potentially prevent the
Brownsville API
from reading the file properly. -
Visit the NYC Open Data website here and sign up for a new account.
-
After the account is created, press
Edit Profile -> Developer Settings -> Create New App Token
. The following window should pop up:
Fill in the required fields as shown in the image. Leave the fields blank.
4. Press save
and copy the created app token from the app token section. For example:
- Paste the app token to the
config.yaml
file, as well as the login information (email and password)
- Visit the MapQuest website here and sign up for a new account.
- After the account is created, press
Manage Keys -> Create a New Key
. The following window should pop up:
Press Create App
after filling in the app name.
8. After creating the app, you will be brought back to the Manage Keys
site. Press the toggle button located to the right and copy the Consumer Key
.
- Paste the
Consumer key
to theconfig.yaml
file. It should end up looking something like this:
- Save the changes in the
config.yaml
file.
The Brownsville API
code documentation is located on the wiki section of the repository. To visit the wiki, press the wiki button on the top navigation bar of the repository or click here.