Skip to content

Full Stack Web Development: created and deployed a dashboard to visualize noise complaints in NYC from 2019 to 2021.

License

Notifications You must be signed in to change notification settings

joseferncruz/udacity-ds-project2

Repository files navigation

Full Stack Web Development - Noisy NYC Dashboard

Udacity Nanodegree in Data Science - Project 2

In this project I created and deployed a webapp dashboard with visualizations that describe noise complaints in NYC from 2019 to 2021. In the process, I used:

  • python3: data analysis (pandas, numpy) and visualizations (plotly)
  • HTML, Bootstrap4, JavaScript: front-end webpage
  • Flask: back-end
  • Heroku: deployment from github

If you have any questions, just send me a quick message via LinkedIn. Enjoy!

Table of Contents

Introduction

In my first project, I used a public dataset to explore how the characteristics of New York City outdoor dining offer during the pandemic. In this project, I looked at another angle of New York City: The noise and noise complaints submitted to the city.

It should not come as a surprise that NYC is very (very) noisy. As NYC officials describe the problem: 'More than 30 million people in the U.S. have hearing loss due to exposure to loud noise. In New York City, nearly one in six adults report ringing in their ears or hearing loss.'

A dataset that could help visualize the problem is the noise complaints dataset provide by NYC under the Open Data Initiative. More precisely, I wondered how the complaints changed in the last year, when many New Yorkers were forced to stay home during the pandemic.

The four visualizations that I created aim to answer the following four questions:

  1. (top-left) What is the monthly variation of complaints in NYC from January 2019 to April 2021?

  2. (top-right) Is the variation equal in the five NYC boroughs?

  3. (bottom-left) What are the top 3 sources of noise complaints in all NYC?

  4. (bottom-right) How do the different types of noise complaints vary across the week in 2020?

The data

The dataset is publicly available through the New York City Open Data Initiative. The version available in the directory data/ noise_data_clean.csv was downloaded on May 5th, 2021.

Visualization

You can access the deployed dashboard-app here (internet access required).

The code

In this repository, you can find code associated with all the different front-end and backend components of the dashboard. Particularly of interest may be:

  • myapp/templates/index.html: HTML, CSS and JavaScript front-end
  • myapp/routes.py: flask backend
  • myapp/wrangling_scripts/gen_fig_data.py: to generate ready data for plotting
  • myapp/wrangling_scripts/wrangle_data.py: to create plotly objects to send to the front-end

Licensing and Acknowledgements

The analysis and code generated during this project are licensed under a MIT License.

Acknowledgements are mostly to the effort of the NYC city hall to provide the datasets with accurate and updated information.


Disclaimer

The author is not affiliated with any of the entities mentioned nor received any kind of compensation. The information contained in this work is provided on an "as is" basis with no guarantees of completeness, accuracy, usefulness or timeliness.

About

Full Stack Web Development: created and deployed a dashboard to visualize noise complaints in NYC from 2019 to 2021.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published