Skip to content

Commit fad7abc

Browse files
authored
DOC: Fix typos in groupby user guide (#54041)
Fix typos in groupby user guide
1 parent d73e9e5 commit fad7abc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/user_guide/groupby.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ will be broadcast across the group.
878878
grouped.transform("sum")
879879
880880
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:
882882

883883
* Return a result that is either the same size as the group chunk or
884884
broadcastable to the size of the group chunk (e.g., a scalar,
@@ -1363,7 +1363,7 @@ implementation headache).
13631363
Grouping with ordered factors
13641364
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13651365

1366-
Categorical variables represented as instance of pandas's ``Categorical`` class
1366+
Categorical variables represented as instances of pandas's ``Categorical`` class
13671367
can be used as group keys. If so, the order of the levels will be preserved:
13681368

13691369
.. ipython:: python
@@ -1496,7 +1496,7 @@ You can also select multiple rows from each group by specifying multiple nth val
14961496
# get the first, 4th, and last date index for each month
14971497
df.groupby([df.index.year, df.index.month]).nth([0, 3, -1])
14981498
1499-
You may also use a slices or lists of slices.
1499+
You may also use slices or lists of slices.
15001500

15011501
.. ipython:: python
15021502

0 commit comments

Comments
 (0)