How to make a time lapse heat map with Folium using NYC Bike Share data
A tutorial for those interested in creating a time lapse heat map.
Preamble
This article is essentially a tutorial for people interested in utilizing the Folium package to construct a time lapse heat map within the Python/Pandas environment. That said, it does provide interesting insights on station locations and most active hours for utilizing bike shares. This could be valuable information in deciding upon the location of new bike share stations.
The Data
The data used for this tutorial was gathered from NYC DOT information page on Bicyclists. They update the page regularly with .CSV datasets for Citi Bike Bike Share Trip Histories. Each dataset includes:
- Trip duration (seconds)
- Start time/stop time (date and time)
- Start and end station name, ID, latitude & longitude
- Bike ID
- User type (“Customer” = 24-hour or 7-day pass user; “Subscriber” = annual member)
- Birth year
- Gender (0=unknown; 1=male; 2=female)
However, for this exercise we will be concerned solely with start station coordinates and…