Support built-in names for Pandas GroupBy-Agg operations in Thicket's GroupBy #238
Labels
area-thicket
Issues and PRs involving Thicket's core Thicket datastructure and associated classes
priority-normal
Normal priority issues and PRs
type-feature
Requests for new features or PRs which implement new features
In docstrings and docs, we refer users to pandas for documentation on aggregation functions. Despite this, we do not currently support an important way of specifying aggregation functions: string function names.
For example, currently, to use a "mean" operation in aggregation, we require users to do the following:
In comparison, it is much more common to do the following for a pandas Groupby-Aggregate:
We should also support string inputs to our
GroupBy.agg
method to be consistent with pandas.Beyond consistency, there are 2 other reasons to do this:
"mean"
overnumpy.mean
. The behavior of the two will be different, and the NumPy functions may not produce correct output.The text was updated successfully, but these errors were encountered: