Skip to content

Commit 8beee93

Browse files
author
gabriel
committed
Contribute to issue pandas-dev#15580
Signed-off-by: gabriel <[email protected]>
1 parent 6813d77 commit 8beee93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/user_guide/groupby.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ By default the group keys are sorted during the ``groupby`` operation. You may h
183183

184184
.. ipython:: python
185185
186-
df2 = pd.DataFrame({'X': ['B', 'B', 'A', 'A'], 'Y': [1, 2, 3, 4]})
186+
df2 = pd.DataFrame({'X': ['A', 'A', 'B', 'B'], 'Y': [1, 2, 3, 4]})
187187
df2.groupby(['X']).sum()
188188
df2.groupby(['X'], sort=False).sum()
189189
@@ -703,7 +703,7 @@ code would work even without the special versions via dispatching (see below).
703703
Transformation
704704
--------------
705705

706-
The ``transform`` method returns an object that is indexed the same (same size)
706+
The ``transform`` method returns an object that is indexed with the same size
707707
as the one being grouped. The transform function must:
708708

709709
* Return a result that is either the same size as the group chunk or
@@ -799,7 +799,7 @@ Another common data transform is to replace missing data with the group mean.
799799
transformed = grouped.transform(lambda x: x.fillna(x.mean()))
800800
801801
We can verify that the group means have not changed in the transformed data
802-
and that the transformed data contains no NAs.
802+
and that the transformed data contains no NAN's.
803803

804804
.. ipython:: python
805805

0 commit comments

Comments
 (0)