Skip to content

Commit 18bc623

Browse files
committed
fixed 'Double line break found' error reported by the docstrings check
1 parent 4f1e283 commit 18bc623

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

pandas/core/generic.py

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5050,8 +5050,7 @@ def pipe(self, func, *args, **kwargs):
50505050
`agg` is an alias for `aggregate`. Use the alias.
50515051
50525052
A passed user-defined-function will be passed a Series for evaluation.
5053-
{examples}
5054-
"""
5053+
{examples}"""
50555054
)
50565055

50575056
# ----------------------------------------------------------------------
@@ -11019,8 +11018,7 @@ def stat_func(
1101911018
1102011019
Returns
1102111020
-------
11022-
{name1} or {name2} (if level specified)\n
11023-
"""
11021+
{name1} or {name2} (if level specified)\n"""
1102411022
nv.validate_stat_ddof_func(tuple(), kwargs, fname=name)
1102511023
if skipna is None:
1102611024
skipna = True
@@ -11089,8 +11087,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
1108911087
{name2}.cumsum : Return cumulative sum over {name2} axis.
1109011088
{name2}.cumprod : Return cumulative product over {name2} axis.
1109111089
11092-
{examples}
11093-
"""
11090+
{examples}"""
1109411091
skipna = nv.validate_cum_func_with_skipna(skipna, args, kwargs, name)
1109511092
if axis is None:
1109611093
axis = self._stat_axis_number
@@ -11139,11 +11136,11 @@ def _make_logical_function(
1113911136
)
1114011137
def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
1114111138
"""
11142-
{desc}
11139+
{desc}
1114311140
11144-
Parameters
11145-
----------
11146-
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
11141+
Parameters
11142+
----------
11143+
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
1114711144
Indicate which axis or axes should be reduced.
1114811145
1114911146
* 0 / 'index' : reduce the index, return a Series whose index is the
@@ -11152,30 +11149,29 @@ def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs
1115211149
original index.
1115311150
* None : reduce all axes, return a scalar.
1115411151
11155-
bool_only : bool, default None
11152+
bool_only : bool, default None
1115611153
Include only boolean columns. If None, will attempt to use everything,
1115711154
then use only boolean data. Not implemented for Series.
11158-
skipna : bool, default True
11155+
skipna : bool, default True
1115911156
Exclude NA/null values. If the entire row/column is NA and skipna is
1116011157
True, then the result will be {empty_value}, as for an empty row/column.
1116111158
If skipna is False, then NA are treated as True, because these are not
1116211159
equal to zero.
11163-
level : int or level name, default None
11160+
level : int or level name, default None
1116411161
If the axis is a MultiIndex (hierarchical), count along a
1116511162
particular level, collapsing into a {name1}.
11166-
**kwargs : any, default None
11163+
**kwargs : any, default None
1116711164
Additional keywords have no effect but might be accepted for
1116811165
compatibility with NumPy.
1116911166
11170-
Returns
11171-
-------
11172-
{name1} or {name2}
11167+
Returns
11168+
-------
11169+
{name1} or {name2}
1117311170
If level is specified, then, {name2} is returned; otherwise, {name1}
1117411171
is returned.
1117511172
11176-
{see_also}
11177-
{examples}
11178-
"""
11173+
{see_also}
11174+
{examples}"""
1117911175
nv.validate_logical_func(tuple(), kwargs, fname=name)
1118011176
if level is not None:
1118111177
if bool_only is not None:

0 commit comments

Comments
 (0)