Skip to content

DOC: updated core/groupby/generic.py for SS06 errors #34715

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

Merged
merged 1 commit into from
Jun 12, 2020
Merged
Changes from all commits
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
9 changes: 5 additions & 4 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1573,8 +1573,10 @@ def _transform_item_by_item(self, obj: DataFrame, wrapper) -> DataFrame:

def filter(self, func, dropna=True, *args, **kwargs):
"""
Return a copy of a DataFrame excluding elements from groups that
do not satisfy the boolean criterion specified by func.
Return a copy of a DataFrame excluding filtered elements.

Elements from groups are filtered if they do not satisfy the
boolean criterion specified by func.

Parameters
----------
Expand Down Expand Up @@ -1835,8 +1837,7 @@ def count(self):

def nunique(self, dropna: bool = True):
"""
Return DataFrame with number of distinct observations per group for
each column.
Return DataFrame with counts of unique elements in each position.

Parameters
----------
Expand Down