Skip to content

Commit f45a0f6

Browse files
committed
fixed 'Double line break found' error reported by the docstrings check
1 parent 33eb094 commit f45a0f6

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
@@ -5086,8 +5086,7 @@ def pipe(self, func, *args, **kwargs):
50865086
`agg` is an alias for `aggregate`. Use the alias.
50875087
50885088
A passed user-defined-function will be passed a Series for evaluation.
5089-
{examples}
5090-
"""
5089+
{examples}"""
50915090
)
50925091

50935092
# ----------------------------------------------------------------------
@@ -11175,8 +11174,7 @@ def stat_func(
1117511174
1117611175
Returns
1117711176
-------
11178-
{name1} or {name2} (if level specified)\n
11179-
"""
11177+
{name1} or {name2} (if level specified)\n"""
1118011178
nv.validate_stat_ddof_func(tuple(), kwargs, fname=name)
1118111179
if skipna is None:
1118211180
skipna = True
@@ -11245,8 +11243,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
1124511243
{name2}.cumsum : Return cumulative sum over {name2} axis.
1124611244
{name2}.cumprod : Return cumulative product over {name2} axis.
1124711245
11248-
{examples}
11249-
"""
11246+
{examples}"""
1125011247
skipna = nv.validate_cum_func_with_skipna(skipna, args, kwargs, name)
1125111248
if axis is None:
1125211249
axis = self._stat_axis_number
@@ -11293,11 +11290,11 @@ def _make_logical_function(
1129311290
)
1129411291
def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
1129511292
"""
11296-
{desc}
11293+
{desc}
1129711294
11298-
Parameters
11299-
----------
11300-
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
11295+
Parameters
11296+
----------
11297+
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
1130111298
Indicate which axis or axes should be reduced.
1130211299
1130311300
* 0 / 'index' : reduce the index, return a Series whose index is the
@@ -11306,30 +11303,29 @@ def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs
1130611303
original index.
1130711304
* None : reduce all axes, return a scalar.
1130811305
11309-
bool_only : bool, default None
11306+
bool_only : bool, default None
1131011307
Include only boolean columns. If None, will attempt to use everything,
1131111308
then use only boolean data. Not implemented for Series.
11312-
skipna : bool, default True
11309+
skipna : bool, default True
1131311310
Exclude NA/null values. If the entire row/column is NA and skipna is
1131411311
True, then the result will be {empty_value}, as for an empty row/column.
1131511312
If skipna is False, then NA are treated as True, because these are not
1131611313
equal to zero.
11317-
level : int or level name, default None
11314+
level : int or level name, default None
1131811315
If the axis is a MultiIndex (hierarchical), count along a
1131911316
particular level, collapsing into a {name1}.
11320-
**kwargs : any, default None
11317+
**kwargs : any, default None
1132111318
Additional keywords have no effect but might be accepted for
1132211319
compatibility with NumPy.
1132311320
11324-
Returns
11325-
-------
11326-
{name1} or {name2}
11321+
Returns
11322+
-------
11323+
{name1} or {name2}
1132711324
If level is specified, then, {name2} is returned; otherwise, {name1}
1132811325
is returned.
1132911326
11330-
{see_also}
11331-
{examples}
11332-
"""
11327+
{see_also}
11328+
{examples}"""
1133311329
nv.validate_logical_func(tuple(), kwargs, fname=name)
1133411330
if level is not None:
1133511331
if bool_only is not None:

0 commit comments

Comments
 (0)