diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index d5151d84e20bb..77b0d2e486bc2 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -204,7 +204,7 @@ class providing the base-class of operations. >>> g1 = df.groupby('A', group_keys=False) >>> g2 = df.groupby('A', group_keys=True) - Notice that ``g1`` have ``g2`` have two groups, ``a`` and ``b``, and only + Notice that ``g1`` and ``g2`` have two groups, ``a`` and ``b``, and only differ in their ``group_keys`` argument. Calling `apply` in various ways, we can get different grouping results: