Skip to content

Commit

Permalink
Fixed PRO8 doctring issues in pandas.core.groupby, issue pandas-dev#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
dayoreke committed Oct 1, 2019
1 parent b1c3a90 commit 1e1658f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down
20 changes: 10 additions & 10 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down Expand Up @@ -1254,7 +1254,7 @@ def std(self, ddof=1, *args, **kwargs):
Parameters
----------
ddof : int, default 1
degrees of freedom
Degrees of freedom
Returns
-------
Expand All @@ -1277,7 +1277,7 @@ def var(self, ddof=1, *args, **kwargs):
Parameters
----------
ddof : int, default 1
degrees of freedom
Degrees of freedom
Returns
-------
Expand Down Expand Up @@ -1312,7 +1312,7 @@ def sem(self, ddof=1):
Parameters
----------
ddof : int, default 1
degrees of freedom
Degrees of freedom
Returns
-------
Expand Down Expand Up @@ -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
-------
Expand All @@ -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
-------
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1e1658f

Please sign in to comment.