Skip to content

Commit

Permalink
fixed 'Double line break found' error reported by the docstrings check
Browse files Browse the repository at this point in the history
  • Loading branch information
smartvinnetou committed Apr 9, 2020
1 parent 0397541 commit 4e7dded
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5037,8 +5037,7 @@ def pipe(self, func, *args, **kwargs):
`agg` is an alias for `aggregate`. Use the alias.
A passed user-defined-function will be passed a Series for evaluation.
{examples}
"""
{examples}"""
)

# ----------------------------------------------------------------------
Expand Down Expand Up @@ -10992,8 +10991,7 @@ def stat_func(
Returns
-------
{name1} or {name2} (if level specified)\n
"""
{name1} or {name2} (if level specified)\n"""
nv.validate_stat_ddof_func(tuple(), kwargs, fname=name)
if skipna is None:
skipna = True
Expand Down Expand Up @@ -11062,8 +11060,7 @@ def cum_func(self, axis=None, skipna=True, *args, **kwargs):
{name2}.cumsum : Return cumulative sum over {name2} axis.
{name2}.cumprod : Return cumulative product over {name2} axis.
{examples}
"""
{examples}"""
skipna = nv.validate_cum_func_with_skipna(skipna, args, kwargs, name)
if axis is None:
axis = self._stat_axis_number
Expand Down Expand Up @@ -11112,11 +11109,11 @@ def _make_logical_function(
)
def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
"""
{desc}
{desc}
Parameters
----------
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
Parameters
----------
axis : {{0 or 'index', 1 or 'columns', None}}, default 0
Indicate which axis or axes should be reduced.
* 0 / 'index' : reduce the index, return a Series whose index is the
Expand All @@ -11125,30 +11122,29 @@ def logical_func(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs
original index.
* None : reduce all axes, return a scalar.
bool_only : bool, default None
bool_only : bool, default None
Include only boolean columns. If None, will attempt to use everything,
then use only boolean data. Not implemented for Series.
skipna : bool, default True
skipna : bool, default True
Exclude NA/null values. If the entire row/column is NA and skipna is
True, then the result will be {empty_value}, as for an empty row/column.
If skipna is False, then NA are treated as True, because these are not
equal to zero.
level : int or level name, default None
level : int or level name, default None
If the axis is a MultiIndex (hierarchical), count along a
particular level, collapsing into a {name1}.
**kwargs : any, default None
**kwargs : any, default None
Additional keywords have no effect but might be accepted for
compatibility with NumPy.
Returns
-------
{name1} or {name2}
Returns
-------
{name1} or {name2}
If level is specified, then, {name2} is returned; otherwise, {name1}
is returned.
{see_also}
{examples}
"""
{see_also}
{examples}"""
nv.validate_logical_func(tuple(), kwargs, fname=name)
if level is not None:
if bool_only is not None:
Expand Down

0 comments on commit 4e7dded

Please sign in to comment.