Data Visualization on Our Unseen NYC Neighbor

Posted on May 15, 2020
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

If I asked you what group ,based on data, in NYC made up one of the most populous and wide-spread in the city, who would you think would most likely come to mind? No matter what your answer, the group would almost certainly be a group of humans. But no one in this city would also be able to deny that the city's wildlife is also one of its hallmarks.

Between the pigeons overhead, the squirrels in the park, or the roaches in almost every corner of every apartment, we have more non-human life in NYC than human life by just about every metric we can come up with. So when you think about what group is closest to people in the city you may be both interested and disgusted by the knowledge that rats are our most common, and closest neighbors. Do not worry if that bothers you though, as that is just a sign that you are not comfortable with rodent infestation in general, and that is completely normal. But like it or not, our ratty friends are here to stay. 

Why do we really care and is it costing us anything?

Consider that since people could start drawing on walls in caves that rats were living right alongside us, it is a mystery how we have not figured out how to rid ourselves of them since we have always universally hated them. And that sentiment can be echoed in recent years when $32 million dollars was pledged by city officials to eliminate large swaths of the population of rodents in NYC.And yet 3 years, and far more than the initial $32 million dollar budget, later, populations of rats actually seem to be on the rise. There is even evidence to suggest that efforts to curb rat growth help to increase the population. 

The Data straight from the horse's mouth.

I took a large data set from the OpenDataNYC site2 about all the times that the city had to be called in to take care of an outbreak of rats in all boroughs of NYC in the last 10 years. There were over 1,000,000 cases where authorities were sent to search for rats in areas of the city, and while most cases came with no results, about 125,000 of the searches came up with active rat signs and the action of trying to eliminate the populations there.

Data Visualization on Our Unseen NYC Neighbor

Two ways to look at the data, not the results I thought I would get.

What I did within my shiny app was to look at two different ways to look at the data, by location and by time. Could there be areas of the city that were overly affected by the rats, and are there time frames that are clearly showing greater signs of rodent infestation?

Data Visualization on Our Unseen NYC Neighbor

Bushwick/Bedford, Alphabet City, UWS, and the West Bronx. All but the West Bronx saw huge renovations amid a push for gentrification in the last several years, which coincided with when rat populations began to explode in those areas.

The evidence points to the constant destruction and reconstruction of buildings as being a driving factor. Rats taking up residence in new construction sites and being forced to the surface by hovel destruction caused the populations to increase significantly. As for the West Bronx, that area has had a very consistent issue with rats over the last decade due to being a low-income area and having close proximity to the Bronx Zoo.

Population increase over time.

There have always been rodents in major cities but perhaps there is an increase as of late. The charting of the data points over time shows that a rise in outbreaks in the last 3 years is proof of this. 

Data Visualization on Our Unseen NYC Neighbor

Focusing entirely on the last several years, you can see that numbers are extremely high compared to the past. Some might point to increased funding to programs for catching and killing rats as a reason for this increase but evidence shows otherwise.3

What should be done and will it actually help?

What can be done that would be useful to the problem as a whole is to increase how sanitary the city is. Less trash and less filth will naturally decrease the populations over time as the only way for rats to increase as much as they do is with a large and steady food supply. What we are doing is actively hunting and killing rats by the thousands.

If that had any chance of making a difference then people would have eliminated the problem centuries ago. Rats are tougher than we are and if we kill off a lot of them then the ones left will eat their dead and replenish the population in a matter of months. This has been known to be scientific fact.4 Passive resistance is the way to win, not active aggression.


  5. Link to my Shiny App:
  6. Link to my Github Code for the app:

About Author

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI