A pythonic dplyr clone
Project description
dppd
Build status: | |
---|---|
Documentation | https://dppd.readthedocs.io/en/latest/ |
| Code style | ](https://github.com/ambv/black)
Dppd is a python dplyr clone.
It allows you to use code like this
>>> from plotnine.data import mtcars
>>> from dppd import dppd
>>> dp, X = dppd()
>>> dp(mtcars).mutate(kwh = X.hp * 0.74).groupby('cyl').filter_by(X.kwh.rank() < 2).ungroup().pd
cyl name mpg disp hp drat wt qsec vs am gear carb kwh
5 6 Valiant 18.1 225.0 105 2.76 3.460 20.22 1 0 3 1 77.70
18 4 Honda Civic 30.4 75.7 52 4.93 1.615 18.52 1 1 4 2 38.48
21 8 Dodge Challenger 15.5 318.0 150 2.76 3.520 16.87 0 0 3 2 111.00
22 8 AMC Javelin 15.2 304.0 150 3.15 3.435 17.30 0 0 3 2 111.00
Briefly, it uses a data-manipulater instance (dp above) together with a proxied reference to the latest created DataFrame (the X above) to achive for pandas what dpylr's non-standard-evaluation based verbs does for R.
Please see our full documentation at https://dppd.readthedocs.io/en/latest/ for more details and a list of the supported verbs.
Also check out dppd_plotnine
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dppd-0.31.tar.gz
.
File metadata
- Download URL: dppd-0.31.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fd3451b4fe696c18cc3f3c15604e34e684f4d87a589ed4d1734ac7fd997a8b05
|
|
MD5 |
cb1f7085f7b6a8746d93e7a1935f2189
|
|
BLAKE2b-256 |
04e04d5bf0ba13089b5e07de529fe5dd80aac14c46d7f738365c8aafddf92b85
|
Provenance
The following attestation bundles were made for dppd-0.31.tar.gz
:
Publisher:
pytest.yml
on TyberiusPrime/dppd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
dppd-0.31.tar.gz
-
Subject digest:
fd3451b4fe696c18cc3f3c15604e34e684f4d87a589ed4d1734ac7fd997a8b05
- Sigstore transparency entry: 187659786
- Sigstore integration time:
-
Permalink:
TyberiusPrime/dppd@4c60eca1e43d2400390f6f9d74c501e455c4339a
-
Branch / Tag:
refs/tags/v0.31
- Owner: https://github.com/TyberiusPrime
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
pytest.yml@4c60eca1e43d2400390f6f9d74c501e455c4339a
-
Trigger Event:
release
-
Statement type: