You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DOC: Clarify groupby operates on axis 0 and remove 'selected axis' reference
This commit addresses issue #56397 by removing outdated references to
"the selected axis" in groupby documentation and clarifying that:
1. DataFrame.groupby() always operates along axis 0 (rows)
2. The axis parameter was removed in pandas 3.0
3. To group by columns, users must transpose the DataFrame first
Changes:
- Updated API reference docstring in DataFrame.groupby() to replace
"selected axis" with "number of rows"
- Enhanced user guide to explicitly state groupby operates on axis 0
- Added note explaining the removal of the axis parameter and the
need to use .T for column-wise grouping
Fixes#56397
0 commit comments