Skip to content

DOC: Add deprecation to docs of Series/DataFrame agg and bool function #48163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down