Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Download and monitor Divvy bikeshare data

Project description

Divvy Data

MIT Travis PyPI


Divvy Data is a package to access historical and live Chicago bikeshare data.

I used this data to blog about Chicago biking and data visualization. See my analysis notebook on nbviewer.

Divvy Data Animation

Set up

pip install divvy-data


Historical Data

import divvydata

# gather historical data over all years
rides, stations = divvydata.get_historical_data(
    years=[str(yr) for yr in range(2013,2019)],

Live Data

import divvydata

sf = divvydata.StationsFeed()
df = sf.monitor_event_history(runtime_sec=60)  # also saves to sf.event_history attribute

# filter to stations that received interactions
df = df.loc[df['id'].duplicated(keep=False)]

Data Usage Limitations

This package does not host or directly provide data, except as cited in analysis notebooks. When using Divvy data, follow Divvy's Data License Agreement.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
divvy_data-0.1.2-py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel py3
divvy-data-0.1.2.tar.gz (5.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page