NYC Citi Bike Data
Code originally in support of the post "A Tale of Twenty-Two Million Citi Bike Rides: Analyzing the NYC Bike Share System". Also used in conjunction with the nyc-taxi-data repo for the post "When Are Citi Bikes Faster Than Taxis in New York City?"
This repo provides scripts to download, process, and analyze NYC's Citi Bike share system data. The data is stored in a PostgreSQL database, uses PostGIS for spatial calculations, and R for data analysis.
PostgreSQL and PostGIS1. Install
Both are available via Homebrew on Mac
2. Download raw taxi data
3. Initialize database and set up schema
4. Import taxi data into database and map to census tracts
Additional Postgres and R scripts for analysis are in the
Other data sources
These are bundled with the repository, so no need to download separately, but:
- Shapefile for NYC census tracts and neighborhood tabulation areas comes from NYC Planning
- Central Park weather data comes from the National Climatic Data Center
email@example.com, or open a GitHub issue