A grammar for data manipulation in Python
BSD-3-CLAUSE License
Depends on Pandas >= 1.1.5. This version of pandas fixes a bug that made plydata unusable for pandas versions v1.1.0, v1.1.1, v1.1.2, v1.1.3 and v1.1.4.
Published by has2k1 almost 4 years ago
Depends on pandas < 1.1.0.
Published by has2k1 about 6 years ago
v0.3.3 is a maintenance release; no new features; one bug fixed.
Published by has2k1 almost 7 years ago
This release a number significant additions and bug fixes. Below is a copy of the changelog.
Bug Fixes
define
(mutate) and create
(transmute), make them work with group_by
.tally
to work with external arrays.tally
to sort in descending order.nth
function of summarize
to return NaN when the requested value is out of bounds.contains
and matches
parameters of select
can now accept a tuple of values.create
, define
and do
) so that they can create categorical columns.left_on
and right_on
parameters.select
does maintain the order in which the columns are listed.New Features
Added special verb call
, it allows one to use external functions that accept a dataframe as the first argument.
For define
, create
and group_by
, you can now use the special function n()
to count the number of elements in current group.
Added the single table helper verbs:
Added pull
verb.
Added slice_rows
verb.
API Changes
summarize
that counts the number of elements in the current group changed from {n}
to n()
.modify_where
and define_where
helper verbs have been removed. Using the new expression helper functions case_when
and if_else
is more readable.dropna
and fillna
in favour of using call
with pandas.DataFrame.dropna()
and pandas.DataFrame.fillna()
.Published by has2k1 over 7 years ago
Re-release of version 0.1.0 without the universal wheels since the project does not support Python 2.
Published by has2k1 over 7 years ago
First release. All the expected data manipulation verbs for the pandas dataframe are implemented.