File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,9 @@ The mapping can be specified many different ways:
87
87
* A Python function, to be called on each of the axis labels.
88
88
* A list or NumPy array of the same length as the selected axis.
89
89
* 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']) ``.
95
93
* A list of any of the above things.
96
94
97
95
Collectively we refer to the grouping objects as the **keys **. For example,
You can’t perform that action at this time.
0 commit comments