numexpr
numexpr copied to clipboard
Fast numerical array expression evaluator for Python, NumPy, Pandas, PyTables and more
ImportError: cannot import name '_NUMEXPR_INSTALLED' from 'pandas.core.computation.check' (/usr/local/lib/python3.7/dist-packages/pandas/core/computation/check.py) While trying to call the pyLDAvis library, I have found this type of error and I don't know how to deal with...
In expressions.py, class ExpressionNode: line 451: if sys.version_info[0] < 3: __div__ = div_op __rdiv__ = binop('div', reversed=True) All fine, but the operators are not defined for Python 3. Leading to...
Hi, I want to calculate expression which is pure in math (do not contains python variables), such as: "1 + 1 + 5" "3 * 423 - 43243" but not...
The numexpr-3.0 branch hasn't been updated in a year. Is it still going to be released, or is it abandoned?
``` arr = np.array([-2, -2]) result = ne.evaluate("arr % 4") expected = arr % 4 >>> result array([-2, -2], dtype=int64) >>> expected array([2, 2]) ``` AFAICT ne.evaluate is using C...
NE2 had very limited support for ascii-encoded strings (with the `contains` function and comparisons). Likely additional function could be added to NE3 if someone who does string processing could be...
Hi, I would like to know what you think about improving the arguments of `NumExpr.run` in order to retrieve argument names from a dictionary? Basically the same API as `numexpr.evaluate`...
The follow exception occurs when evaluating a simple expression. ``` >>> import numexpr as ne >>> ne.evaluate('(a==1)| b', local_dict={'a': 0, 'b':1}) Traceback (most recent call last): File "/home/ubuntu/pes/venv/lib/python3.6/site-packages/numexpr/necompiler.py", line 813,...
The line here https://github.com/pydata/numexpr/blob/7c2ef387d81cd450e8220fe4174cf46ec559994c/numexpr/utils.py#L118 should be ```python if 'NUMEXPR_MAX_THREADS' in os.environ or 'OMP_NUM_THREADS' in os.environ: ``` given that the two env vars are treated the same way in the code...
I tried to add functions (minimum, maximum) to numexpr2 and found that first, there are no more opcodes available, and second that these functions are already in the 3.0 branch....