Skip to content

Commit 0bfce5f

Browse files
Add note for name field in groupby (#58114)
* Fix backticks * Move note in doc/source/user_guide/groupby.rst
1 parent 6f39c4f commit 0bfce5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/user_guide/groupby.rst

+6
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ You can also include the grouping columns if you want to operate on them.
416416
417417
grouped[["A", "B"]].sum()
418418
419+
.. note::
420+
421+
The ``groupby`` operation in Pandas drops the ``name`` field of the columns Index object
422+
after the operation. This change ensures consistency in syntax between different
423+
column selection methods within groupby operations.
424+
419425
.. _groupby.iterating-label:
420426

421427
Iterating through groups

0 commit comments

Comments
 (0)