Download and monitor Divvy bikeshare data
Divvy Data is a package to access historical and live Chicago bikeshare data.
pip install divvy-data
import divvydata # gather historical data over all years rides, stations = divvydata.get_historical_data( years=[str(yr) for yr in range(2013,2019)], rides=True, stations=True )
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for divvy_data-0.1.2-py3-none-any.whl