-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: fix AttributeError raised in libreduction #29100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
668e94f
11999d3
110cdda
d24cddb
4f1705d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,7 +261,7 @@ def aggregate(self, func=None, *args, **kwargs): | |
|
||
try: | ||
return self._python_agg_general(func, *args, **kwargs) | ||
except AssertionError: | ||
except (AssertionError, AttributeError): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what hits AttributeError here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have tests that raise AttributeError here (in master) when a Categorical or IntegerArray is passed to SeriesBinGrouper. |
||
raise | ||
except Exception: | ||
result = self._aggregate_named(func, *args, **kwargs) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this work with Categorical otherwise (the BinGrouper)? do we need tests here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have tests that get here with Categorical and IntegerArray.