Skip to main content

use the R dplyr package with python

Project description

<!–

### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###

# file to edit: index.ipynb # command to build the docs after a change: nbdev_build_docs

–>

# pplyr

> pplyr lets you use dplyrs grammar of data manipulation from within python without any code changes.

## Install

pip install pplyr

## How to use

Create a dplyr command and call pplyr(df, dplyr_code):

from pplyr.core import pplyr import pandas as pd df = pd.read_csv(“iris.csv”, index_col=0)

dplyr = “””

df = df %>% group_by(Species) %>% summarize_all(list(mean = mean)) %>% select(-X_mean)

“””

df = pplyr(df, dplyr)

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

pplyr-0.0.5.tar.gz (9.1 kB view hashes)

Uploaded source

Built Distribution

pplyr-0.0.5-py2-none-any.whl (4.7 kB view hashes)

Uploaded py2

Supported by

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