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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file divvy-data-0.1.2.tar.gz.
File metadata
- Download URL: divvy-data-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7289f6a479805920b9ebcbf4aa96009ccba811241309357f76b9fc579c8e3de
|
|
| MD5 |
2b83dd8139144eaa045e15129c86f16e
|
|
| BLAKE2b-256 |
74cfa40dfe37502878b4c1c382544fcc3b3791a7dd16300beb12a8c96de8de74
|
File details
Details for the file divvy_data-0.1.2-py3-none-any.whl.
File metadata
- Download URL: divvy_data-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd64295c5f7501f50e152e73831f2dbe6172911be1bbf3fb1787f0d8e0286dfc
|
|
| MD5 |
4e3f9ce0fd5ce0643689acdb0dce1874
|
|
| BLAKE2b-256 |
8a2afb9ed6380e14b188518f73b627553482881d2fee4e5140b18d9a032cb405
|