Skip to content

Commit ddf2f05

Browse files
authored
DOC: Update groupby.rst (#36238)
1 parent 49b342b commit ddf2f05

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/source/user_guide/groupby.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ The mapping can be specified many different ways:
8787
* A Python function, to be called on each of the axis labels.
8888
* A list or NumPy array of the same length as the selected axis.
8989
* A dict or ``Series``, providing a ``label -> group name`` mapping.
90-
* For ``DataFrame`` objects, a string indicating a column to be used to group.
91-
Of course ``df.groupby('A')`` is just syntactic sugar for
92-
``df.groupby(df['A'])``, but it makes life simpler.
93-
* For ``DataFrame`` objects, a string indicating an index level to be used to
94-
group.
90+
* For ``DataFrame`` objects, a string indicating either a column name or
91+
an index level name to be used to group.
92+
* ``df.groupby('A')`` is just syntactic sugar for ``df.groupby(df['A'])``.
9593
* A list of any of the above things.
9694

9795
Collectively we refer to the grouping objects as the **keys**. For example,

0 commit comments

Comments
 (0)