-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Dataframe.eval(): Negative number in list passed to 'in'-expression causes crash on python 3.4.0 #11235
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
pls show a reproducible example, e.g. show how the actual frame is created so it can be copy-pasted pls show |
Sorry, my bad. The lines actually defining the data fell away in during copy-paste. I've updated the example above. Here's show_versions()
|
yeh I guess this is parsed differently in 3.4 that in 2.7. pull-requests to fix are welcome |
Hi all, this appears to still be broken for some cases, e.g. here is a test-case for python3.6, pandas 0.20.1: def test_unary():
df = pd.DataFrame({'x': np.array([0.11, 0], dtype=np.float32)})
res = df.eval('(x > 0.1) | (x < -0.1)')
assert np.array_equal(res, np.array([True, False])), res the tail of the output is:
In that case the please let me know if you prefer I open a new issue. |
best 2 open a new issue |
The following crashes on python 3.4.0. It works fine on Python 2.7.5.
The text was updated successfully, but these errors were encountered: