Skip to main content

A library to create pandas objects using the Data Commons Python API.

Project description

Data Commons Pandas API

This is a Python library for creating pandas objects with data in the Data Commons Graph.

To get started, install this package from pip.

pip install datacommons_pandas

Once the package is installed, import datacommons_pandas.

import datacommons_pandas as dcpd

For more detail on getting started with the API, please visit our API Overview.

When you are ready to use the API, you can refer to datacommons_pandas/examples for examples on how to use this package to perform various tasks. More tutorials and documentation can be found on our tutorials page!

About Data Commons

Data Commons is an open knowledge repository that provides a unified view across multiple public data sets and statistics. You can view what datasets are currently ingested and browse the graph using our browser.

License

Apache 2.0

Development

Please follow the Development instructions.

Release to PyPI

If this is your first time releasing to PyPI, please review the PyPI guide starting from the setup section.

Release to Test PyPI

  1. Append "-USERNAME" to the package "NAME". For example, NAME = 'foo_package-janedoe123'.
  2. Increment the "VERSION" code to something that has not been used in your test project. This will not affect the production PyPI versioning.
  3. Build the dist
python3 -m pip install --user --upgrade setuptools wheel
python3 ../setup_datacommons_pandas.py sdist bdist_wheel
  1. Release the dist to TestPyPI.
python3 -m pip install --user --upgrade twine
python3 -m twine upload --repository testpypi ../dist/*

Release to Production PyPI

  1. Revert the package name to datacommons_pandas
  2. Update and double check "VERSION" in setup_datacommons.py
  3. Update CHANGELOG.md for a new version
  4. Clear the dist folder: rm ../dist/*
  5. Build the dist
python3 -m pip install --user --upgrade setuptools wheel
python3 ../setup_datacommons_pandas.py sdist bdist_wheel
  1. Release the dist to PyPI.
python3 -m pip install --user --upgrade twine
twine upload ../dist/*

Support

For general questions or issues about the API, please open an issue on our issues page. For all other questions, please send an email to support@datacommons.org.

Note - This is not an officially supported Google product.

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

datacommons_pandas-0.0.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

datacommons_pandas-0.0.2-py3-none-any.whl (75.4 kB view details)

Uploaded Python 3

File details

Details for the file datacommons_pandas-0.0.2.tar.gz.

File metadata

  • Download URL: datacommons_pandas-0.0.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for datacommons_pandas-0.0.2.tar.gz
Algorithm Hash digest
SHA256 93d0a5560345a21337bd7afd2281917d39a7796119c31ec602a95c9c750def47
MD5 bace725979009ac5cfddf15ba7571dbd
BLAKE2b-256 38a7ba76e1f4bbf40588425c632d95fcf19b1cf05007f199a1f54736ddcb6fe5

See more details on using hashes here.

File details

Details for the file datacommons_pandas-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: datacommons_pandas-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 75.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for datacommons_pandas-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1300e53a828e694d204e29d62da6d8f9eef8ee3b35b7926759451124b40db2
MD5 2da14c423e905196a9cd1f4c0f100f06
BLAKE2b-256 a1946a826e6c175e93be81168ef5d29a30b27e490f3fbc0e900e0b848aaf709b

See more details on using hashes here.

Supported by

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