From c46df8d8cbbe1b43af85a26a0ffe38e9316b926f Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Fri, 19 Aug 2022 20:10:54 +0200 Subject: [PATCH] DOC: Add deprecation to docs of Series/DataFrame agg and bool function --- pandas/core/generic.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 88184285d3683..342e4eae09257 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -12173,6 +12173,9 @@ def _doc_params(cls): level : int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a {name1}. + + .. deprecated:: 1.3.0 + The level keyword is deprecated. Use groupby instead. numeric_only : bool, default None Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. Not implemented for Series. @@ -12205,6 +12208,9 @@ def _doc_params(cls): level : int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a {name1}. + + .. deprecated:: 1.3.0 + The level keyword is deprecated. Use groupby instead. ddof : int, default 1 Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. @@ -12310,6 +12316,9 @@ def _doc_params(cls): level : int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a {name1}. + + .. deprecated:: 1.3.0 + The level keyword is deprecated. Use groupby instead. **kwargs : any, default None Additional keywords have no effect but might be accepted for compatibility with NumPy.