Skip to main content

The easy way to write your own Pandas flavor.

Project description

# Pandas Flavor Easily write your own flavor of Pandas

Pandas added register_series_accessor and register_dataframe_accessor decorators in 0.23. These extensions allow you to easily add new accessors to Pandas objects that are persistent. This means, you can easily write your own flavor of the DataFrame.

To see an example, checkout [pdvega](https://github.com/jakevdp/pdvega). This library adds a new Vega plotting accessor under the vgplot attribute and mirror the plot (matplotlib-based) accessor.

Pandas Flavor takes this extension module a step further and adds similar syntax for registering new methods!

![](docs/_images/example.png)

To see another example, check out [PhyloPandas](https://github.com/Zsailer/phylopandas). This library adds extra to_ methods for writing DataFrames to various biological sequencing file formats.

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

pandas_flavor-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

pandas_flavor-0.1.0-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 Python 3

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