Skip to content Skip to sidebar Skip to footer

Numexpr Not Found In Pandas

I install numexpr package via pip on my Windows 7 machine: pip list | grep numexpr numexpr (2.4.6) but when I open ipython and trying to use df.query it shows an error: ImportErro

Solution 1:

Regarding your last comment about compatibility of numpy 1.10.1 and numexpr: I am not sure what numexpr version I used, but used it yesterday at home with numpy 1.10.1 under python 3.4 and it worked.

I am not an expert in using pip so maybe my hint is wrong but when I used pip to upgrade numpy under Ubuntu lately it updated only numpy for python 2.7 which is installed in parallel on my machine.

As I use python 3.4 for coding I had to install pip3 to get it also upgraded for python3. Try if the installation works when using pip3 install numexpr.

Solution 2:

Since the 'numexpr' engine can not be found use the 'python' engine instead. Open the eval.py file in pandas package and replace the

def eval(expr, parser='pandas', engine='numexpr'

with

def eval(expr, parser='pandas', engine='python'

Post a Comment for "Numexpr Not Found In Pandas"