We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a5c55f commit 77483ddCopy full SHA for 77483dd
doc/source/whatsnew/v0.19.1.txt
@@ -57,4 +57,4 @@ Bug Fixes
57
58
- Bug in ``pd.pivot_table`` may raise ``TypeError`` or ``ValueError`` when ``index`` or ``columns``
59
is not scalar and ``values`` is not specified (:issue:`14380`)
60
-- pd.eval('') and df.query('') now show better error message and raise ``ValueError`` (:issue: `13139`)
+- corrrecly raise ``ValueError`` on empty input to pd.eval() and df.query() (:issue: `13139`)
pandas/computation/tests/test_eval.py
@@ -1892,6 +1892,7 @@ def test_bad_resolver_raises():
1892
1893
1894
def check_empty_string_raises(engine, parser):
1895
+ # GH 13139
1896
tm.skip_if_no_ne(engine)
1897
with tm.assertRaisesRegexp(ValueError, 'expr cannot be an empty string'):
1898
pd.eval('', engine=engine, parser=parser)
0 commit comments