Skip to content

Commit 1e1658f

Browse files
committed
Fixed PRO8 doctring issues in pandas.core.groupby, issue pandas-dev#28706
1 parent b1c3a90 commit 1e1658f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pandas/core/groupby/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def filter(self, func, dropna=True, *args, **kwargs):
693693
f : function
694694
Function to apply to each subframe. Should return True or False.
695695
dropna : Drop groups that do not pass the filter. True by default;
696-
if False, groups that evaluate False are filled with NaNs.
696+
If False, groups that evaluate False are filled with NaNs.
697697
698698
Returns
699699
-------

pandas/core/groupby/groupby.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ class providing the base-class of operations.
212212
string indicating the keyword of `callable` that expects the
213213
%(klass)s object.
214214
args : iterable, optional
215-
positional arguments passed into `func`.
215+
Positional arguments passed into `func`.
216216
kwargs : dict, optional
217-
a dictionary of keyword arguments passed into `func`.
217+
A dictionary of keyword arguments passed into `func`.
218218
219219
Returns
220220
-------
@@ -1254,7 +1254,7 @@ def std(self, ddof=1, *args, **kwargs):
12541254
Parameters
12551255
----------
12561256
ddof : int, default 1
1257-
degrees of freedom
1257+
Degrees of freedom
12581258
12591259
Returns
12601260
-------
@@ -1277,7 +1277,7 @@ def var(self, ddof=1, *args, **kwargs):
12771277
Parameters
12781278
----------
12791279
ddof : int, default 1
1280-
degrees of freedom
1280+
Degrees of freedom
12811281
12821282
Returns
12831283
-------
@@ -1312,7 +1312,7 @@ def sem(self, ddof=1):
13121312
Parameters
13131313
----------
13141314
ddof : int, default 1
1315-
degrees of freedom
1315+
Degrees of freedom
13161316
13171317
Returns
13181318
-------
@@ -1624,7 +1624,7 @@ def pad(self, limit=None):
16241624
Parameters
16251625
----------
16261626
limit : int, optional
1627-
limit of how many values to fill
1627+
Limit of how many values to fill
16281628
16291629
Returns
16301630
-------
@@ -1650,7 +1650,7 @@ def backfill(self, limit=None):
16501650
Parameters
16511651
----------
16521652
limit : int, optional
1653-
limit of how many values to fill
1653+
Limit of how many values to fill
16541654
16551655
Returns
16561656
-------
@@ -1682,9 +1682,9 @@ def nth(self, n: Union[int, List[int]], dropna: Optional[str] = None) -> DataFra
16821682
Parameters
16831683
----------
16841684
n : int or list of ints
1685-
a single nth value for the row or a list of nth values
1685+
A single nth value for the row or a list of nth values
16861686
dropna : None or str, optional
1687-
apply the specified dropna operation before counting which row is
1687+
Apply the specified dropna operation before counting which row is
16881688
the nth row. Needs to be None, 'any' or 'all'
16891689
16901690
Returns
@@ -2314,7 +2314,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None):
23142314
Parameters
23152315
----------
23162316
periods : int, default 1
2317-
number of periods to shift
2317+
Number of periods to shift
23182318
freq : frequency string
23192319
axis : axis to shift, default 0
23202320
fill_value : optional

0 commit comments

Comments
 (0)