diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index f8f1455561c03f..9d14935c3b0452 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -693,7 +693,7 @@ def filter(self, func, dropna=True, *args, **kwargs): f : function Function to apply to each subframe. Should return True or False. dropna : Drop groups that do not pass the filter. True by default; - if False, groups that evaluate False are filled with NaNs. + If False, groups that evaluate False are filled with NaNs. Returns ------- diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 6facbe7e01c57a..cf670cd5ee69e6 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -212,9 +212,9 @@ class providing the base-class of operations. string indicating the keyword of `callable` that expects the %(klass)s object. args : iterable, optional - positional arguments passed into `func`. + Positional arguments passed into `func`. kwargs : dict, optional - a dictionary of keyword arguments passed into `func`. + A dictionary of keyword arguments passed into `func`. Returns ------- @@ -1254,7 +1254,7 @@ def std(self, ddof=1, *args, **kwargs): Parameters ---------- ddof : int, default 1 - degrees of freedom + Degrees of freedom Returns ------- @@ -1277,7 +1277,7 @@ def var(self, ddof=1, *args, **kwargs): Parameters ---------- ddof : int, default 1 - degrees of freedom + Degrees of freedom Returns ------- @@ -1312,7 +1312,7 @@ def sem(self, ddof=1): Parameters ---------- ddof : int, default 1 - degrees of freedom + Degrees of freedom Returns ------- @@ -1624,7 +1624,7 @@ def pad(self, limit=None): Parameters ---------- limit : int, optional - limit of how many values to fill + Limit of how many values to fill Returns ------- @@ -1650,7 +1650,7 @@ def backfill(self, limit=None): Parameters ---------- limit : int, optional - limit of how many values to fill + Limit of how many values to fill Returns ------- @@ -1682,9 +1682,9 @@ def nth(self, n: Union[int, List[int]], dropna: Optional[str] = None) -> DataFra Parameters ---------- n : int or list of ints - a single nth value for the row or a list of nth values + A single nth value for the row or a list of nth values dropna : None or str, optional - apply the specified dropna operation before counting which row is + Apply the specified dropna operation before counting which row is the nth row. Needs to be None, 'any' or 'all' Returns @@ -2314,7 +2314,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None): Parameters ---------- periods : int, default 1 - number of periods to shift + Number of periods to shift freq : frequency string axis : axis to shift, default 0 fill_value : optional