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.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: terra-pandas-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 4502561ca95b13db87f0c399a28353340a022484f77f482551022b4f3fabd7a3
MD5 2da95af1a675816505864a6fc2668046
BLAKE2b-256 e40454f2a536bd0ebbe365dc0b8f1f4f563a8b29faf3b46732d9fd0d23c87536

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