Let’s pretend it’s 2019… and you still can make travel plans

I grow lavender for fun but that’s entirely unrelated to what this article is about


Here’s a look at the raw dataset
In the “before-time”, herds of humans roamed through these streets as far as the eye could see.
Here’s what the app looks like
The output price shows up in green. I would bet, though, that since the pandemic has started that prices have probably gone down. Let me know in the comments if you’re familiar with renting AirBnBs in NYC
Pretty neat map, huh? It shows all the rentals available in 2019 at each of their longitude and latitude locations superimposed on this beautiful map of NYC.
Same map but zoomed in
Same map but zoomed in even further
screenshot of the map in the google colab notebook
import plotly.express as pximport pandas as pddef visual(df):"""this takes the cleaned NYC rental dataset in csv format and makes interactive heatmap### ResponseJSON string to render with react-plotly.js"""fig = px.scatter_mapbox(df, lat="latitude", lon="longitude", color="price",hover_data=["neighbourhood_group",  "neighbourhood", "id"],color_discrete_sequence=["fuchsia"],zoom=10, height=125)fig.update_layout(width=1000,height=1000,



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store