Skip to content

Commit 4cf9153

Browse files
committed
typos
1 parent 4d39dc7 commit 4cf9153

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6618,7 +6618,7 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
66186618
reduce the dimensionality of the return type if possible,
66196619
otherwise return a consistent type
66206620
observed : boolean, default False
6621-
This only applies if any if the groupers are Categoricals
6621+
This only applies if any of the groupers are Categoricals
66226622
If True: only show observed values for categorical groupers.
66236623
If False: show all values for categorical groupers.
66246624

pandas/core/groupby/groupby.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4736,8 +4736,8 @@ def _reindex_output(self, result):
47364736
This can re-expand the output space
47374737
"""
47384738

4739-
# we need to re-expand the output space to accomadate all values
4740-
# whethere observed or not in the cartesian product of our groupes
4739+
# we need to re-expand the output space to accomodate all values
4740+
# whether observed or not in the cartesian product of our groupes
47414741
groupings = self.grouper.groupings
47424742
if groupings is None:
47434743
return result
@@ -4749,7 +4749,7 @@ def _reindex_output(self, result):
47494749
elif self.observed:
47504750
return result
47514751

4752-
# reindexing only appiles to a Categorical grouper
4752+
# reindexing only applies to a Categorical grouper
47534753
elif not any(isinstance(ping.grouper, (Categorical, CategoricalIndex))
47544754
for ping in groupings):
47554755
return result

0 commit comments

Comments
 (0)