Skip to content

Commit 484b69b

Browse files
committed
DOC: Fix introduced docstring validation errors (pandas-dev#25356)
1 parent 5920ad2 commit 484b69b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

pandas/core/arrays/categorical.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -773,16 +773,16 @@ def as_unordered(self, inplace=False):
773773
"""
774774
Set the Categorical to be unordered.
775775
776-
Returns
777-
-------
778-
Categorical
779-
Unordered Categorical.
780-
781776
Parameters
782777
----------
783778
inplace : bool, default False
784779
Whether or not to set the ordered attribute in-place or return
785780
a copy of this categorical with ordered set to False.
781+
782+
Returns
783+
-------
784+
Categorical
785+
Unordered Categorical.
786786
"""
787787
inplace = validate_bool_kwarg(inplace, 'inplace')
788788
return self.set_ordered(False, inplace=inplace)

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9322,7 +9322,7 @@ def tz_convert(self, tz, axis=0, level=None, copy=True):
93229322
Returns
93239323
-------
93249324
%(klass)s
9325-
%(klass)s with time zone converted axis.
9325+
Object with time zone converted axis.
93269326
93279327
Raises
93289328
------

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def groupby_function(name, alias, npfunc,
13011301
Returns
13021302
-------
13031303
Series or DataFrame
1304-
%(f)s of values within each group.
1304+
Computed %(f)s of values within each group.
13051305
"""
13061306

13071307
@Substitution(name='groupby', f=name)

pandas/core/indexes/base.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -4819,16 +4819,16 @@ def get_slice_bound(self, label, side, kind):
48194819
Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
48204820
of given label.
48214821
4822-
Returns
4823-
-------
4824-
int
4825-
Indice of label.
4826-
48274822
Parameters
48284823
----------
48294824
label : object
48304825
side : {'left', 'right'}
48314826
kind : {'ix', 'loc', 'getitem'}
4827+
4828+
Returns
4829+
-------
4830+
int
4831+
Indice of label.
48324832
"""
48334833
assert kind in ['ix', 'loc', 'getitem', None]
48344834

0 commit comments

Comments
 (0)