Skip to content

COMPAT/BUG: Ignore numexpr < 2.0 #5858

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

Closed
wants to merge 9 commits into from

Conversation

jtratner
Copy link
Contributor

@jtratner jtratner commented Jan 5, 2014

in both computation.expressions and computationr.engine. Issues with API
compatibility.

Fixes #5857, #5855, #5845.

@@ -79,6 +79,10 @@ class NumExprEngine(AbstractEngine):
has_neg_frac = True

def __init__(self, expr):
import pandas.computation.expressions
Copy link
Contributor

Choose a reason for hiding this comment

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

is their a reason you can't do this at the module level
and just check a variable on the engine? (importing in a function not a gr8 idea); maybe need to move the Numexpr import check to pandas.init (like the numpy version check)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the import to the top. I think this module needs to respect _USE_NUMEXPR from computation/expressions (or I guess we could move that to pandas/computation/__init__.py)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I take it back, I'm moving it to __init__.py of computation, used in many places.

@jreback
Copy link
Contributor

jreback commented Jan 15, 2014

@jtratner can you fixup....?

@jreback
Copy link
Contributor

jreback commented Jan 17, 2014

@jtratner ?

@ghost ghost assigned jtratner Jan 17, 2014
@jtratner
Copy link
Contributor Author

doing it now - thanks for the second ping.

@jtratner
Copy link
Contributor Author

I'll merge this once I get it to pass - still a few kinks to work out

@jreback
Copy link
Contributor

jreback commented Jan 18, 2014

u prob need 2 change a build maybe 2.6

@jtratner
Copy link
Contributor Author

wow - never seen one minor change break so many tests!

@jtratner
Copy link
Contributor Author

something weird going on that requires going deeper, going to circle back tomorrow

@jreback
Copy link
Contributor

jreback commented Jan 21, 2014

@jtratner ?

@jtratner
Copy link
Contributor Author

I'm working on it. There's a few weird test failures that I'm not grokking
right now. (sorry I have way less free time than I used to)

@jreback
Copy link
Contributor

jreback commented Jan 26, 2014

closing.. @cpcloud putting up a new PR

@jreback jreback closed this Jan 26, 2014
@jtratner
Copy link
Contributor Author

okay thanks @cpcloud

@cpcloud
Copy link
Member

cpcloud commented Jan 26, 2014

np!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Query doesn't respect pandas.computation.expressions' numexpr settings
3 participants