@@ -727,9 +727,9 @@ def _transform_general(
727
727
728
728
def filter (self , func , dropna : bool = True , * args , ** kwargs ):
729
729
"""
730
- Filter elements from groups that don't satisfy a criterion.
730
+ Filter groups that don't satisfy a criterion.
731
731
732
- Elements from groups are filtered if they do not satisfy the
732
+ Groups are filtered if they do not satisfy the
733
733
boolean criterion specified by func.
734
734
735
735
Parameters
@@ -752,7 +752,7 @@ def filter(self, func, dropna: bool = True, *args, **kwargs):
752
752
See Also
753
753
--------
754
754
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.
756
756
757
757
Notes
758
758
-----
@@ -2335,9 +2335,9 @@ def _choose_path(self, fast_path: Callable, slow_path: Callable, group: DataFram
2335
2335
2336
2336
def filter (self , func , dropna : bool = True , * args , ** kwargs ) -> DataFrame :
2337
2337
"""
2338
- Filter elements from groups that don't satisfy a criterion.
2338
+ Filter groups that don't satisfy a criterion.
2339
2339
2340
- Elements from groups are filtered if they do not satisfy the
2340
+ Groups are filtered if they do not satisfy the
2341
2341
boolean criterion specified by func.
2342
2342
2343
2343
Parameters
@@ -2360,7 +2360,7 @@ def filter(self, func, dropna: bool = True, *args, **kwargs) -> DataFrame:
2360
2360
See Also
2361
2361
--------
2362
2362
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.
2364
2364
2365
2365
Notes
2366
2366
-----
0 commit comments