City macro dataset distributed as a Python package.
Project description
city-macro-data
city-macro-data is a distributable dataset package for city-level macro data.
Installation
pip install city-macro-data
Quick Start
from city_macro_data import load_data, get_metadata, data_version, validate_data
df = load_data()
meta = get_metadata()
print(df.shape)
print(data_version())
print(validate_data())
API
load_data(): return dataset aspandas.DataFrameget_metadata(): return metadata frommetadata.jsondata_version(): return dataset version stringvalidate_data(required_columns=None): validate non-empty data and required columns
Data Update Workflow (for maintainers)
From repository root:
python build-data/build_data.py
powershell -ExecutionPolicy Bypass -File scripts/sync_packages.ps1
python -m pip install --force-reinstall .\python-pkg
Notes for Windows Users
Avoid editable install (pip install -e) under non-ASCII paths. Use normal install:
python -m pip install .\python-pkg
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
city_macro_data-0.1.0.tar.gz
(817.9 kB
view details)
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 city_macro_data-0.1.0.tar.gz.
File metadata
- Download URL: city_macro_data-0.1.0.tar.gz
- Upload date:
- Size: 817.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0b1ac6114d937d86c4fc64d09849fb1d8859a20ef338c5678fd68eeb80cfc3
|
|
| MD5 |
86f44f36cc0fc150a14bcf96a52a2cd3
|
|
| BLAKE2b-256 |
f24457e19accd5a9fcb72b99b6f937697477bae7e701f972dde86af3185dc39e
|
File details
Details for the file city_macro_data-0.1.0-py3-none-any.whl.
File metadata
- Download URL: city_macro_data-0.1.0-py3-none-any.whl
- Upload date:
- Size: 820.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5efbb065e7ae106c088a94724de097ce574b03f7cffce8d0804399c9c76a6f7
|
|
| MD5 |
c6345cc135198cba6ea8c2c89a8fea5c
|
|
| BLAKE2b-256 |
dd84816b20085e6281dc65d4adc44a21e04c9903c70aecf8e97dbe5f508e63b4
|