Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add groupby & reduce support to EA #22762

Merged
merged 23 commits into from
Oct 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format docstring
  • Loading branch information
jorisvandenbossche committed Oct 12, 2018
commit 3037ccd7f6ae82a1fe9308759d1ec505f45c8940
17 changes: 9 additions & 8 deletions pandas/core/arrays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,19 +680,20 @@ def _ndarray_values(self):
return np.array(self)

def _reduce(self, name, skipna=True, **kwargs):
"""Return a scalar result of performing the reduction operation.
"""
Return a scalar result of performing the reduction operation.

Parameters
----------
name : str
name of the function, support values are:
{any, all, min, max, sum, mean, median, prod,
std, var, sem, kurt, skew}
Name of the function, supported values are:
{ any, all, min, max, sum, mean, median, prod,
std, var, sem, kurt, skew }.
skipna : bool, default True
if True, skip NaN values
kwargs : dict
Additional keyword arguments passed to the reduction function
ddof is the only supported kwarg
If True, skip NaN values.
**kwargs
Additional keyword arguments passed to the reduction function.
Currently, `ddof` is the only supported kwarg.

jreback marked this conversation as resolved.
Show resolved Hide resolved
Returns
-------
Expand Down