Skip to content

Commit 6330ecd

Browse files
committed
Fix documentation for DataFrameGroupBy.filter and SeriesGroupBy.filter
1 parent 5fef979 commit 6330ecd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/groupby/generic.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ def _transform_general(
727727

728728
def filter(self, func, dropna: bool = True, *args, **kwargs):
729729
"""
730-
Filter elements from groups that don't satisfy a criterion.
730+
Filter groups that don't satisfy a criterion.
731731
732-
Elements from groups are filtered if they do not satisfy the
732+
Groups are filtered if they do not satisfy the
733733
boolean criterion specified by func.
734734
735735
Parameters
@@ -752,7 +752,7 @@ def filter(self, func, dropna: bool = True, *args, **kwargs):
752752
See Also
753753
--------
754754
Series.filter: Filter elements of ungrouped Series.
755-
DataFrameGroupBy.filter : Filter elements from groups base on criterion.
755+
DataFrameGroupBy.filter : Filter groups base on criterion.
756756
757757
Notes
758758
-----
@@ -2335,9 +2335,9 @@ def _choose_path(self, fast_path: Callable, slow_path: Callable, group: DataFram
23352335

23362336
def filter(self, func, dropna: bool = True, *args, **kwargs) -> DataFrame:
23372337
"""
2338-
Filter elements from groups that don't satisfy a criterion.
2338+
Filter groups that don't satisfy a criterion.
23392339
2340-
Elements from groups are filtered if they do not satisfy the
2340+
Groups are filtered if they do not satisfy the
23412341
boolean criterion specified by func.
23422342
23432343
Parameters
@@ -2360,7 +2360,7 @@ def filter(self, func, dropna: bool = True, *args, **kwargs) -> DataFrame:
23602360
See Also
23612361
--------
23622362
DataFrame.filter: Filter elements of ungrouped DataFrame.
2363-
SeriesGroupBy.filter : Filter elements from groups base on criterion.
2363+
SeriesGroupBy.filter : Filter groups based on criterion.
23642364
23652365
Notes
23662366
-----

0 commit comments

Comments
 (0)