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.

Files for pplyr, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pplyr-0.0.5-py2-none-any.whl (4.7 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pplyr-0.0.5.tar.gz (9.1 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