@@ -5086,8 +5086,7 @@ def pipe(self, func, *args, **kwargs):
5086
5086
`agg` is an alias for `aggregate`. Use the alias.
5087
5087
5088
5088
A passed user-defined-function will be passed a Series for evaluation.
5089
- {examples}
5090
- """
5089
+ {examples}"""
5091
5090
)
5092
5091
5093
5092
# ----------------------------------------------------------------------
@@ -11175,8 +11174,7 @@ def stat_func(
11175
11174
11176
11175
Returns
11177
11176
-------
11178
- {name1} or {name2} (if level specified)\n
11179
- """
11177
+ {name1} or {name2} (if level specified)\n """
11180
11178
nv .validate_stat_ddof_func (tuple (), kwargs , fname = name )
11181
11179
if skipna is None :
11182
11180
skipna = True
@@ -11245,8 +11243,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
11245
11243
{name2}.cumsum : Return cumulative sum over {name2} axis.
11246
11244
{name2}.cumprod : Return cumulative product over {name2} axis.
11247
11245
11248
- {examples}
11249
- """
11246
+ {examples}"""
11250
11247
skipna = nv .validate_cum_func_with_skipna (skipna , args , kwargs , name )
11251
11248
if axis is None :
11252
11249
axis = self ._stat_axis_number
@@ -11293,11 +11290,11 @@ def _make_logical_function(
11293
11290
)
11294
11291
def logical_func (self , axis = 0 , bool_only = None , skipna = True , level = None , ** kwargs ):
11295
11292
"""
11296
- {desc}
11293
+ {desc}
11297
11294
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
11301
11298
Indicate which axis or axes should be reduced.
11302
11299
11303
11300
* 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
11306
11303
original index.
11307
11304
* None : reduce all axes, return a scalar.
11308
11305
11309
- bool_only : bool, default None
11306
+ bool_only : bool, default None
11310
11307
Include only boolean columns. If None, will attempt to use everything,
11311
11308
then use only boolean data. Not implemented for Series.
11312
- skipna : bool, default True
11309
+ skipna : bool, default True
11313
11310
Exclude NA/null values. If the entire row/column is NA and skipna is
11314
11311
True, then the result will be {empty_value}, as for an empty row/column.
11315
11312
If skipna is False, then NA are treated as True, because these are not
11316
11313
equal to zero.
11317
- level : int or level name, default None
11314
+ level : int or level name, default None
11318
11315
If the axis is a MultiIndex (hierarchical), count along a
11319
11316
particular level, collapsing into a {name1}.
11320
- **kwargs : any, default None
11317
+ **kwargs : any, default None
11321
11318
Additional keywords have no effect but might be accepted for
11322
11319
compatibility with NumPy.
11323
11320
11324
- Returns
11325
- -------
11326
- {name1} or {name2}
11321
+ Returns
11322
+ -------
11323
+ {name1} or {name2}
11327
11324
If level is specified, then, {name2} is returned; otherwise, {name1}
11328
11325
is returned.
11329
11326
11330
- {see_also}
11331
- {examples}
11332
- """
11327
+ {see_also}
11328
+ {examples}"""
11333
11329
nv .validate_logical_func (tuple (), kwargs , fname = name )
11334
11330
if level is not None :
11335
11331
if bool_only is not None :
0 commit comments