Skip to content

Commit 81d8a59

Browse files
committed
fixed 'Double line break found' error reported by the docstrings check
1 parent 223f0f8 commit 81d8a59

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
@@ -5081,8 +5081,7 @@ def pipe(self, func, *args, **kwargs):
50815081
`agg` is an alias for `aggregate`. Use the alias.
50825082
50835083
A passed user-defined-function will be passed a Series for evaluation.
5084-
{examples}
5085-
"""
5084+
{examples}"""
50865085
)
50875086

50885087
# ----------------------------------------------------------------------
@@ -11054,8 +11053,7 @@ def stat_func(
1105411053
1105511054
Returns
1105611055
-------
11057-
{name1} or {name2} (if level specified)\n
11058-
"""
11056+
{name1} or {name2} (if level specified)\n"""
1105911057
nv.validate_stat_ddof_func(tuple(), kwargs, fname=name)
1106011058
if skipna is None:
1106111059
skipna = True
@@ -11124,8 +11122,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
1112411122
{name2}.cumsum : Return cumulative sum over {name2} axis.
1112511123
{name2}.cumprod : Return cumulative product over {name2} axis.
1112611124
11127-
{examples}
11128-
"""
11125+
{examples}"""
1112911126
skipna = nv.validate_cum_func_with_skipna(skipna, args, kwargs, name)
1113011127
if axis is None:
1113111128
axis = self._stat_axis_number
@@ -11172,11 +11169,11 @@ def _make_logical_function(
1117211169
)
1117311170
def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
1117411171
"""
11175-
{desc}
11172+
{desc}
1117611173
11177-
Parameters
11178-
----------
11179-
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
11174+
Parameters
11175+
----------
11176+
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
1118011177
Indicate which axis or axes should be reduced.
1118111178
1118211179
* 0 / 'index' : reduce the index, return a Series whose index is the
@@ -11185,30 +11182,29 @@ def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs
1118511182
original index.
1118611183
* None : reduce all axes, return a scalar.
1118711184
11188-
bool_only : bool, default None
11185+
bool_only : bool, default None
1118911186
Include only boolean columns. If None, will attempt to use everything,
1119011187
then use only boolean data. Not implemented for Series.
11191-
skipna : bool, default True
11188+
skipna : bool, default True
1119211189
Exclude NA/null values. If the entire row/column is NA and skipna is
1119311190
True, then the result will be {empty_value}, as for an empty row/column.
1119411191
If skipna is False, then NA are treated as True, because these are not
1119511192
equal to zero.
11196-
level : int or level name, default None
11193+
level : int or level name, default None
1119711194
If the axis is a MultiIndex (hierarchical), count along a
1119811195
particular level, collapsing into a {name1}.
11199-
**kwargs : any, default None
11196+
**kwargs : any, default None
1120011197
Additional keywords have no effect but might be accepted for
1120111198
compatibility with NumPy.
1120211199
11203-
Returns
11204-
-------
11205-
{name1} or {name2}
11200+
Returns
11201+
-------
11202+
{name1} or {name2}
1120611203
If level is specified, then, {name2} is returned; otherwise, {name1}
1120711204
is returned.
1120811205
11209-
{see_also}
11210-
{examples}
11211-
"""
11206+
{see_also}
11207+
{examples}"""
1121211208
nv.validate_logical_func(tuple(), kwargs, fname=name)
1121311209
if level is not None:
1121411210
if bool_only is not None:

0 commit comments

Comments
 (0)