Skip to content

Commit e966fcb

Browse files
committed
replaced Appender with doc
1 parent 80ba4c4 commit e966fcb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/core/generic.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10687,17 +10687,17 @@ def _doc_parms(cls):
1068710687
"""
1068810688

1068910689
_num_ddof_doc = """
10690-
%(desc)s
10690+
{desc}
1069110691
1069210692
Parameters
1069310693
----------
10694-
axis : %(axis_descr)s
10694+
axis : {axis_descr}
1069510695
skipna : bool, default True
1069610696
Exclude NA/null values. If an entire row/column is NA, the result
1069710697
will be NA.
1069810698
level : int or level name, default None
1069910699
If the axis is a MultiIndex (hierarchical), count along a
10700-
particular level, collapsing into a %(name1)s.
10700+
particular level, collapsing into a {name1}.
1070110701
ddof : int, default 1
1070210702
Delta Degrees of Freedom. The divisor used in calculations is N - ddof,
1070310703
where N represents the number of elements.
@@ -10707,7 +10707,7 @@ def _doc_parms(cls):
1070710707
1070810708
Returns
1070910709
-------
10710-
%(name1)s or %(name2)s (if level specified)\n"""
10710+
{name1} or {name2} (if level specified)\n"""
1071110711

1071210712
_bool_doc = """
1071310713
%(desc)s
@@ -11410,8 +11410,7 @@ def stat_func(
1141011410
def _make_stat_function_ddof(
1141111411
cls, name: str, name1: str, name2: str, axis_descr: str, desc: str, func: Callable
1141211412
) -> Callable:
11413-
@Substitution(desc=desc, name1=name1, name2=name2, axis_descr=axis_descr)
11414-
@Appender(_num_ddof_doc)
11413+
@doc(_num_ddof_doc, desc=desc, name1=name1, name2=name2, axis_descr=axis_descr)
1141511414
def stat_func(
1141611415
self, axis=None, skipna=None, level=None, ddof=1, numeric_only=None, **kwargs
1141711416
):

0 commit comments

Comments
 (0)