Skip to content

Commit a67f4d0

Browse files
committed
typo
1 parent 881c7e1 commit a67f4d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/groupby/groupby.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1485,10 +1485,11 @@ def ohlc(self):
14851485

14861486
@Appender(DataFrame.describe.__doc__)
14871487
def describe(self, **kwargs):
1488-
result = self.apply(lambda x: x.describe(**kwargs))
1489-
if self.axis == 1:
1490-
return result.T
1491-
return result.unstack()
1488+
with _group_selection_context(self):
1489+
result = self.apply(lambda x: x.describe(**kwargs))
1490+
if self.axis == 1:
1491+
return result.T
1492+
return result.unstack()
14921493

14931494
@Substitution(name='groupby')
14941495
@Appender(_doc_template)

0 commit comments

Comments
 (0)