Download and monitor Divvy bikeshare data
Project description
About
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.
Set up
pip install divvy-data
Usage
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)],
rides=True,
stations=True
)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
divvy-data-0.1.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for divvy_data-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856378c2fb1f202c89139c3c0cf7822c36586a3630e7ca65f4f8062b32b4f14e |
|
MD5 | 0c5f9281dcf1d1b561dd94948b41140f |
|
BLAKE2b-256 | 2dfe89d4c081ffde7a8aa4bc510e7c6426d081d8d4891b24778b42c2fcd0c3fc |