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.
Release files for divvy-data 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| divvy-data-0.1.2.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| divvy_data-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / divvy-data-0.1.2.tar.gz
| Download URL | divvy-data-0.1.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7289f6a479805920b9ebcbf4aa96009ccba811241309357f76b9fc579c8e3de
|
|
BLAKE2b-256 checksum How to use checksums |
74cfa40dfe37502878b4c1c382544fcc3b3791a7dd16300beb12a8c96de8de74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / divvy_data-0.1.2-py3-none-any.whl
| Download URL | divvy_data-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd64295c5f7501f50e152e73831f2dbe6172911be1bbf3fb1787f0d8e0286dfc
|
|
BLAKE2b-256 checksum How to use checksums |
8a2afb9ed6380e14b188518f73b627553482881d2fee4e5140b18d9a032cb405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|