Skip to content

CLN: Exception catching in expressions #28650

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
Sep 27, 2019

Conversation

jbrockmendel
Copy link
Member

No description provided.

)
except ValueError as detail:
if "unknown type object" in str(detail):
pass
Copy link
Member

Choose a reason for hiding this comment

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

This did never happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

the only errors that bubble up are TypeErrors, which we catch in the calling func in ops.array_ops

return "bool" in x.dtypes
else:
return x.dtype == bool
return x.dtype == bool
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use is_bool_dtype(x) ?

Copy link
Member Author

Choose a reason for hiding this comment

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

could, but thats non-performant, which is a big deal here

Copy link
Contributor

Choose a reason for hiding this comment

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

k

@jreback jreback added the Clean label Sep 27, 2019
@jreback jreback added this to the 1.0 milestone Sep 27, 2019
@jreback jreback merged commit 90d7eee into pandas-dev:master Sep 27, 2019
@jbrockmendel jbrockmendel deleted the faster_expr branch September 27, 2019 21:31
josibake pushed a commit to josibake/pandas that referenced this pull request Sep 29, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants