Skip to main content

Tools work with Terra data tables in Pandas

Project description

terra-pandas

Import and export Terra data tables to Pandas DataFrames.

Installation

From the CLI:

pip install terra-pandas

In a Jupyter notebook (note the ipython magic "%pip"):

%pip install terra-pandas

Upgrading

It is often useful to keep up to date with new features and bug fixes. Installing the latest version of terra-pandas depends on your host environment.

From any Jupyter notebook, use the following (and note the leading "%")

%pip install --upgrade --no-cache-dir terra-pandas

From the CLI on standard Terra notebook runtimes, which are available using the terminal button in the Terra user interface, use

/usr/local/bin/pip install --upgrade --no-cache-dir terra-pandas

Note that all standard notebook runtimes on Terra are based on this Docker image.

For other environments, it is often enough to do

pip install --upgrade --no-cache-dir terra-pandas

Credentials

Much of the terra-pandas functionality requires credentialed access through a Google Cloud Platform account. Credentials are already available when running in a Terra notebook environment. Otherwise, credentials may be obtained with the command

gcloud auth application-default login

Tests

Release

The commands mentioned in common.mk file are used for the release process. Steps:

  • if you don't have a PyPI account, please create one
  • you should be a collaborator in PyPI for Terra Notebook Utils. If you are not, please ask Brian Hannafious to add you as a collaborator
  • follow the setup instructions as mentioned in Tests section above for env Prod; make sure you have access to the DRS urls, workspaces and buckets
  • run make all_test from inside the docker container created in Local Development section. Once tests pass, you can move to the release step
  • Release:
    • For non-breaking API changes, use make release_patch
    • For breaking API changes, use make release_minor
    • For a major release, use make release_major

If a release needs to be rolled back for some reason, please contact Brian Hannafious for help.

Links

Project home page GitHub Package distribution PyPI

Bugs

Please report bugs, issues, feature requests, etc. on GitHub.

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

terra-pandas-0.0.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file terra-pandas-0.0.0.tar.gz.

File metadata

  • Download URL: terra-pandas-0.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for terra-pandas-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1688b8e1a1ad2f4cc332c6cb0b5799d2661098a618c6c6e5eaa11f996a2193dc
MD5 79fdddfede6f148cee7118544c00d097
BLAKE2b-256 557b9e013ca934ba5612705a5012085cdfa1f4ecfcc22565a518d2dc97a2e659

See more details on using hashes here.

Provenance

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