Skip to content

Commit ab79c54

Browse files
author
Francesc Alted
committed
Require numexpr 2.6.2
1 parent d9e75c7 commit ab79c54

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

doc/source/whatsnew/v0.20.0.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
.. _whatsnew_0200:
22

3-
v0.20.0 (????, 2016)
3+
v0.20.0 (????, 2017)
44
--------------------
55

66
This is a major release from 0.19 and includes a small number of API changes, several new features,
77
enhancements, and performance improvements along with a large number of bug fixes. We recommend that all
88
users upgrade to this version.
99

10+
.. warning::
11+
12+
Due to important fixes and performance improvements, ``numexpr`` version is now required to be >= 2.6.2 and it will not be used at all if this requisite is not fullfilled (:issue:`15213`).
13+
1014
Highlights include:
1115

1216
- Building pandas for development now requires ``cython >= 0.23`` (:issue:`14831`)

pandas/computation/__init__.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,13 @@
77
try:
88
import numexpr as ne
99
ver = ne.__version__
10-
_NUMEXPR_INSTALLED = ver >= LooseVersion('2.1')
10+
_NUMEXPR_INSTALLED = ver >= LooseVersion('2.6.2')
1111

12-
# we specifically disallow 2.4.4 as
13-
# has some hard-to-diagnose bugs
14-
if ver == LooseVersion('2.4.4'):
15-
_NUMEXPR_INSTALLED = False
16-
warnings.warn(
17-
"The installed version of numexpr {ver} is not supported "
18-
"in pandas and will be not be used\n".format(ver=ver),
19-
UserWarning)
20-
21-
elif not _NUMEXPR_INSTALLED:
12+
if not _NUMEXPR_INSTALLED:
2213
warnings.warn(
2314
"The installed version of numexpr {ver} is not supported "
2415
"in pandas and will be not be used\nThe minimum supported "
25-
"version is 2.1\n".format(ver=ver), UserWarning)
16+
"version is 2.6.2\n".format(ver=ver), UserWarning)
2617

2718
except ImportError: # pragma: no cover
2819
pass

0 commit comments

Comments
 (0)