Skip to content
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

BUG: odd indexing issue w.r.t series/frame div op (may involve numexpr) #7198

Closed
jreback opened this issue May 21, 2014 · 2 comments · Fixed by #7201
Closed

BUG: odd indexing issue w.r.t series/frame div op (may involve numexpr) #7198

jreback opened this issue May 21, 2014 · 2 comments · Fixed by #7201
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented May 21, 2014

worked in 0.13.1

works for n = 4, but not 4000

        for n in [ 4, 4000 ]:

            df = DataFrame(1,index=range(n),columns=list('abcd'))
            df.iloc[0] = 2

            expected = DataFrame(np.tile(df.mean().values,n).reshape(n,-1),
                                 columns=list('abcd'))/df
            result = df.mean()/df
            assert_frame_equal(result,expected)
@jreback jreback added this to the 0.14.0 milestone May 21, 2014
@jreback
Copy link
Contributor Author

jreback commented May 21, 2014

@cpcloud working on this, but if you have thoughts

@cpcloud
Copy link
Member

cpcloud commented May 21, 2014

yeah i think numexpr bypasses PyObject_RichCompare, but I haven't checked it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
2 participants