File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,7 @@ will be broadcast across the group.
878
878
grouped.transform(" sum" )
879
879
880
880
In addition to string aliases, the :meth: `~.DataFrameGroupBy.transform ` method can
881
- also except User-Defined functions (UDFs). The UDF must:
881
+ also accept User-Defined Functions (UDFs). The UDF must:
882
882
883
883
* Return a result that is either the same size as the group chunk or
884
884
broadcastable to the size of the group chunk (e.g., a scalar,
@@ -1363,7 +1363,7 @@ implementation headache).
1363
1363
Grouping with ordered factors
1364
1364
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1365
1365
1366
- Categorical variables represented as instance of pandas's ``Categorical `` class
1366
+ Categorical variables represented as instances of pandas's ``Categorical `` class
1367
1367
can be used as group keys. If so, the order of the levels will be preserved:
1368
1368
1369
1369
.. ipython :: python
@@ -1496,7 +1496,7 @@ You can also select multiple rows from each group by specifying multiple nth val
1496
1496
# get the first, 4th, and last date index for each month
1497
1497
df.groupby([df.index.year, df.index.month]).nth([0 , 3 , - 1 ])
1498
1498
1499
- You may also use a slices or lists of slices.
1499
+ You may also use slices or lists of slices.
1500
1500
1501
1501
.. ipython :: python
1502
1502
You can’t perform that action at this time.
0 commit comments