Skip to content

Commit

Permalink
Backport PR #54896 on branch 2.1.x (DOC: updated docstring for deprec…
Browse files Browse the repository at this point in the history
…ation of axis=1 in groupby) (#54912)

Backport PR #54896: DOC: updated docstring for deprecation of axis=1 in groupby

Co-authored-by: Rajat Subhra Mukherjee <raromukherjee@gmail.com>
  • Loading branch information
meeseeksmachine and rsm-23 committed Aug 31, 2023
1 parent c1353e9 commit cbff8f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pandas/core/shared_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
axis : {0 or 'index', 1 or 'columns'}, default 0
Split along rows (0) or columns (1). For `Series` this parameter
is unused and defaults to 0.
.. deprecated:: 2.1.0
Will be removed and behave like axis=0 in a future version.
For ``axis=1``, do ``frame.T.groupby(...)`` instead.
level : int, level name, or sequence of such, default None
If the axis is a MultiIndex (hierarchical), group by a particular
level or levels. Do not specify both ``by`` and ``level``.
Expand Down

0 comments on commit cbff8f1

Please sign in to comment.