Skip to main content

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 as pandas.DataFrame
  • get_metadata(): return metadata from metadata.json
  • data_version(): return dataset version string
  • validate_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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

city_macro_data-0.1.0-py3-none-any.whl (820.5 kB view details)

Uploaded Python 3

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

Hashes for city_macro_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b0b1ac6114d937d86c4fc64d09849fb1d8859a20ef338c5678fd68eeb80cfc3
MD5 86f44f36cc0fc150a14bcf96a52a2cd3
BLAKE2b-256 f24457e19accd5a9fcb72b99b6f937697477bae7e701f972dde86af3185dc39e

See more details on using hashes here.

File details

Details for the file city_macro_data-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for city_macro_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5efbb065e7ae106c088a94724de097ce574b03f7cffce8d0804399c9c76a6f7
MD5 c6345cc135198cba6ea8c2c89a8fea5c
BLAKE2b-256 dd84816b20085e6281dc65d4adc44a21e04c9903c70aecf8e97dbe5f508e63b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page