-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Inf in query / eval #7178
Comments
Just needs to be added to the global constants. |
Thanks @cpcloud What do you mean? Is this something specific to |
I can do this in an hour or so if you look in computation/scope.py and want to take a crack at it before then please do. |
@ribonoous sorry about the above explanation; I didn't mean to be so cryptic. The reason this fails is actually because the "builtins" to eval are not looked up correctly (which is actually a bug). If you can't wait for the fix to be merged just slap an @ on the front of inf and as long as it's defined in the scope where you call eval / query you're golden. |
Great. That makes sense. Thanks @cpcloud |
In
df.eval()
ordf.query()
, is there any way to run comparisons againstnp.Inf
?When I do:
temp_df.eval('my_col < Inf')
ortemp_df.eval('my_col < np.Inf')
orI get
UndefinedVariableError
The text was updated successfully, but these errors were encountered: