Skip to content

Commit 062a406

Browse files
committed
fixed 'Double line break found' error reported by the docstrings check
1 parent 5ec12c1 commit 062a406

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

pandas/core/generic.py

+16-20
Original file line numberDiff line numberDiff line change
@@ -5041,8 +5041,7 @@ def pipe(self, func, *args, **kwargs):
50415041
`agg` is an alias for `aggregate`. Use the alias.
50425042
50435043
A passed user-defined-function will be passed a Series for evaluation.
5044-
{examples}
5045-
"""
5044+
{examples}"""
50465045
)
50475046

50485047
# ----------------------------------------------------------------------
@@ -10998,8 +10997,7 @@ def stat_func(
1099810997
1099910998
Returns
1100010999
-------
11001-
{name1} or {name2} (if level specified)\n
11002-
"""
11000+
{name1} or {name2} (if level specified)\n"""
1100311001
nv.validate_stat_ddof_func(tuple(), kwargs, fname=name)
1100411002
if skipna is None:
1100511003
skipna = True
@@ -11068,8 +11066,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
1106811066
{name2}.cumsum : Return cumulative sum over {name2} axis.
1106911067
{name2}.cumprod : Return cumulative product over {name2} axis.
1107011068
11071-
{examples}
11072-
"""
11069+
{examples}"""
1107311070
skipna = nv.validate_cum_func_with_skipna(skipna, args, kwargs, name)
1107411071
if axis is None:
1107511072
axis = self._stat_axis_number
@@ -11118,11 +11115,11 @@ def _make_logical_function(
1111811115
)
1111911116
def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
1112011117
"""
11121-
{desc}
11118+
{desc}
1112211119
11123-
Parameters
11124-
----------
11125-
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
11120+
Parameters
11121+
----------
11122+
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
1112611123
Indicate which axis or axes should be reduced.
1112711124
1112811125
* 0 / 'index' : reduce the index, return a Series whose index is the
@@ -11131,30 +11128,29 @@ def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs
1113111128
original index.
1113211129
* None : reduce all axes, return a scalar.
1113311130
11134-
bool_only : bool, default None
11131+
bool_only : bool, default None
1113511132
Include only boolean columns. If None, will attempt to use everything,
1113611133
then use only boolean data. Not implemented for Series.
11137-
skipna : bool, default True
11134+
skipna : bool, default True
1113811135
Exclude NA/null values. If the entire row/column is NA and skipna is
1113911136
True, then the result will be {empty_value}, as for an empty row/column.
1114011137
If skipna is False, then NA are treated as True, because these are not
1114111138
equal to zero.
11142-
level : int or level name, default None
11139+
level : int or level name, default None
1114311140
If the axis is a MultiIndex (hierarchical), count along a
1114411141
particular level, collapsing into a {name1}.
11145-
**kwargs : any, default None
11142+
**kwargs : any, default None
1114611143
Additional keywords have no effect but might be accepted for
1114711144
compatibility with NumPy.
1114811145
11149-
Returns
11150-
-------
11151-
{name1} or {name2}
11146+
Returns
11147+
-------
11148+
{name1} or {name2}
1115211149
If level is specified, then, {name2} is returned; otherwise, {name1}
1115311150
is returned.
1115411151
11155-
{see_also}
11156-
{examples}
11157-
"""
11152+
{see_also}
11153+
{examples}"""
1115811154
nv.validate_logical_func(tuple(), kwargs, fname=name)
1115911155
if level is not None:
1116011156
if bool_only is not None:

0 commit comments

Comments
 (0)