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.

Source Distribution

simpledf-0.12.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file simpledf-0.12.tar.gz.

File metadata

  • Download URL: simpledf-0.12.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simpledf-0.12.tar.gz
Algorithm Hash digest
SHA256 81eec9d32cd66894b359ae7df84bdb3ef9360163140942807c4fecefe86b7c65
MD5 926c3d83596baebe475ad5014bac5125
BLAKE2b-256 efedb09f4545fdaede939106ff26b0e454dd96973c711f93f4223aa2a64a9347

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