Skip to content

Commit 82f3011

Browse files
Nikhil1O1Kevin D Smith
authored and
Kevin D Smith
committed
DOC: Update groupby.rst (pandas-dev#36238)
1 parent 67faef5 commit 82f3011

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)