Skip to content

Commit 37fa846

Browse files
authored
DOC: Add deprecation to docs of Series/DataFrame agg and bool function (#48163)
1 parent 34af798 commit 37fa846

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/core/generic.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12173,6 +12173,9 @@ def _doc_params(cls):
1217312173
level : int or level name, default None
1217412174
If the axis is a MultiIndex (hierarchical), count along a
1217512175
particular level, collapsing into a {name1}.
12176+
12177+
.. deprecated:: 1.3.0
12178+
The level keyword is deprecated. Use groupby instead.
1217612179
numeric_only : bool, default None
1217712180
Include only float, int, boolean columns. If None, will attempt to use
1217812181
everything, then use only numeric data. Not implemented for Series.
@@ -12205,6 +12208,9 @@ def _doc_params(cls):
1220512208
level : int or level name, default None
1220612209
If the axis is a MultiIndex (hierarchical), count along a
1220712210
particular level, collapsing into a {name1}.
12211+
12212+
.. deprecated:: 1.3.0
12213+
The level keyword is deprecated. Use groupby instead.
1220812214
ddof : int, default 1
1220912215
Delta Degrees of Freedom. The divisor used in calculations is N - ddof,
1221012216
where N represents the number of elements.
@@ -12310,6 +12316,9 @@ def _doc_params(cls):
1231012316
level : int or level name, default None
1231112317
If the axis is a MultiIndex (hierarchical), count along a
1231212318
particular level, collapsing into a {name1}.
12319+
12320+
.. deprecated:: 1.3.0
12321+
The level keyword is deprecated. Use groupby instead.
1231312322
**kwargs : any, default None
1231412323
Additional keywords have no effect but might be accepted for
1231512324
compatibility with NumPy.

0 commit comments

Comments
 (0)