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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pandex, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size pandex-0.2-py3-none-any.whl (34.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pandex-0.2.tar.gz (35.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page