Skip to main content

A simple, easier-to-use implementation of dataframes.

Project description

An easier to use apply function for pandas groupby operations involving a custom function. See Jupyter notebook example that verifies the complexity of selection sort.

Installation

This package exists on pypi. You can install it using pip:

pip install simpledf

Demo

Here is a quick demo of how this package works:

>>> import simpledf as sdf
>>> import pandas as pd
>>> import numpy as np
>>> x = pd.DataFrame({'Data': [1, 2, 3], 'Group': ['A', 'B', 'B']})
>>> def f(y):
        y['Mean'] = np.mean(y['Data'].values)
        return y

>>> z = sdf.apply(x.groupby('Group'), f)
>>> print z

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 simpledf, version 0.12
Filename, size File type Python version Upload date Hashes
Filename, size simpledf-0.12.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page