Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Dataframe.eval(): Negative number in list passed to 'in'-expression causes crash on python 3.4.0 #11235
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 |
jreback
added Bug Difficulty Intermediate Effort Low
labels
Oct 4, 2015
jreback
added this to the
Next Major Release
milestone
Oct 4, 2015
kawochen
referenced
this issue
Oct 19, 2015
Merged
BUG: GH11235 where pd.eval doesn't handle unary ops in lists #11366
jreback
modified the milestone: 0.17.1, Next Major Release
Oct 19, 2015
jreback
closed this
in #11366
Oct 23, 2015
brentp
commented
May 15, 2017
|
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])), resthe 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 |
brentp
referenced
this issue
May 16, 2017
Open
DataFrame.eval errors with AttributeError: 'UnaryOp' #16363
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tobgu commentedOct 4, 2015
The following crashes on python 3.4.0. It works fine on Python 2.7.5.