Skip to content

CLN: dont catch Exception in groupby var #28883

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

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

jbrockmendel
Copy link
Member

Between this, #28878, and #28873, I'm finding that the outside-in approach to cleaning this up is proving easier the earlier inside-out approach.

@@ -721,6 +722,10 @@ def f(g):
with np.errstate(all="ignore"):
return func(g, *args, **kwargs)

elif hasattr(nanops, "nan" + func):
# TODO: should we wrap this in to e.g. _is_builtin_func?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would seem logical; follow ups to figure out what is actually needed here are certainly welcome

@WillAyd WillAyd added Clean Error Reporting Incorrect or improved errors from pandas Groupby labels Oct 10, 2019
@WillAyd WillAyd added this to the 1.0 milestone Oct 10, 2019
@WillAyd WillAyd merged commit 71f8ab9 into pandas-dev:master Oct 10, 2019
@WillAyd
Copy link
Member

WillAyd commented Oct 10, 2019

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the faster37 branch October 10, 2019 01:55
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Error Reporting Incorrect or improved errors from pandas Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants