-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
numexpr 2.3.1 error with pandas 0.13.1 #6762
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
Comments
and what exactly are you doing when it gives that error? |
Good point.
|
why not just do |
can't use booleans in as @cpcloud says, why are you not using |
still ... should this fall back onto python/bottleneck ops? |
& worked - had to change it everywhere. cpcloud is right: & is better than *. I started using & instead of * when I realized that. May be it's a good reason to correct those things. Still, has numexpr become more hard ass about things like that? |
maybe not catching the and not testing with 2.3.1...hmmm will fix that... |
I take that back...we ARE testing on window 2.3.1.....guess don't have a test for that particular case..... @cpcloud when you have a chance? |
i don't think numexpr has ever supported arithmetic ops on bool dtype arrays. not sure why this is throwing from pandas tho ... @jreback sure |
used to work with numexpr 2.0.1 and pandas 0.12 |
I agree....should just catch and revert to python @bluefir what numpy are you using? |
looks like 2.1 changed this (to a warning then later deprecated)....see here: https://github.com/pydata/numexpr/blob/master/RELEASE_NOTES.rst |
oh didn't know they were on gh awesom |
now we can add opcodes and datetime timedelta support hurrah!!! |
numpy 1.8.1 |
Ok, just to intercept here. Are you guys saying there is a faster way of doing what I am trying to do? |
looks like you are trying to index something else but keep shape?
or just select
to just get the indexed data |
could also do |
I just want to calculate the number of values in a column that are not null and not equal to zero. |
|
Ha! Indeed. Thanks! |
@jreback should the arith bool ops return the same thing as combine? combine actually does each operation "manually" then puts the result in an array of the same type as the lhs and rhs ... which makes |
dividing bools is weird and is an edge case so it's not THAT important i just need to pick one |
I think you just raise on all bool dtypes that are not boolean types (e.g. |
I just installed numexpr 2.3.1 with pandas 0.13.1 and got the following error:
File "C:\Python27\lib\site-packages\pandas\core\ops.py", line 496, in wrapper
arr = na_op(lvalues, rvalues)
File "C:\Python27\lib\site-packages\pandas\core\ops.py", line 443, in na_op
raise_on_error=True, *_eval_kwargs)
File "C:\Python27\lib\site-packages\pandas\computation\expressions.py", line 176, in evaluate
*_eval_kwargs)
File "C:\Python27\lib\site-packages\pandas\computation\expressions.py", line 104, in _evaluate_numexpr
*_eval_kwargs)
File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 738, in evaluate
NumExpr(ex, signature, *context)
File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 554, in NumExpr
precompile(ex, signature, context)
File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 498, in precompile
ast = typeCompileAst(ast)
File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 163, in typeCompileAst
% (ast.value + '' + retsig+basesig))
NotImplementedError: couldn't find matching opcode for 'mul_bbb'
The text was updated successfully, but these errors were encountered: