Skip to main content

Extension framework for pandas

Project description

pandex - An Extension Framework for pandas

pandex is a framework for creating, managing and sharing extensions for the pandas package.

There is a built-in extension system in pandas but it is not straightforward to share these between projects, virtual environments, other users on the same server or indeed, the wider world.

pandex allows extensions to be installed from local files, directories or directly from public GitHub repositories. Once installed, they persist for a user across multiple virtual environments.

Any existing script can be upgraded to support extensions with a single line change. Simply replace:

import pandas as pd

with:

   import pandex as pd

and all dataframes created from pd will be able to access installed extensions.

An demo extension which calculates the circumference and area of circles from a column of radius values can be installed:

    pd.ext.import_extension('github:connectedblue/pdext_collection -> circle_calculations')

Whenever these calculations are required for a dataframe df which contains a column radius, the extension can be called:

   df.ext.circle_calculations()

To see the currently installed extensions:

   pd.ext.show_extensions()

Full documentation can be found here

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

pandex-0.2.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

pandex-0.2.1-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file pandex-0.2.1.tar.gz.

File metadata

  • Download URL: pandex-0.2.1.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pandex-0.2.1.tar.gz
Algorithm Hash digest
SHA256 16ca70367aa6a2e73bef2f0b66b8054ba95685388b6c730ff27a6f630a15cd33
MD5 01ffb6b021dbd62d385f83440ace33a5
BLAKE2b-256 4c866d01de9d672a4a8cd1ff96e3d05a3829d680df383265af76ba039566f8e9

See more details on using hashes here.

File details

Details for the file pandex-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pandex-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pandex-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dafb808dfaaa958c22d716f8373c9639271da29d27fe2d63fca6ac1f803e7c8c
MD5 382cc6f36cc1eb5116ec8ac3df7c9b13
BLAKE2b-256 a5bc9765e2cbf53bad9b9fc724ab0f9f5c670d535464aa1dec6b4aa2950d4eb8

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