-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: Pre-empt TypeError in groupby #29261
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
Conversation
Was this |
The |
if ( | ||
f_name not in base.plotting_methods | ||
sdata = splitter._get_sorted_data() | ||
if sdata.ndim == 2 and np.any(sdata.dtypes.apply(is_extension_array_dtype)): |
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.
I would move this to the Splittler class something like
@cache_only
def has_extension_array(self):
return self.data.dtypes.apply(...)
and can handle this on Series & Frame splitter
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.
yah, this function is definitely getting refactored in a later pass. id like to get the exceptions sorted out before trying to decide about the refactor
k looks fine (hopefully you have followons!). rebase and ping on green. |
ping |
Thanks @jbrockmendel |
cc @WillAyd @jreback, should be orthogonal to #29228.