-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: merge_asof raising ValueError for read-only ndarrays #53513
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: merge_asof raising ValueError for read-only ndarrays #53513
Conversation
Does setting the memory views to const not have the same effect? For a while I thought we were trying to use memoryviews over numpy arrays in the Cython layer so would be better to stick to that design if it works. If not though still lgtm |
Worth adding a test for this |
I just tried setting const on the memory views and I got a compile error. Looking through the rest of that file it looks like most funcs use numpy arrays for numeric. There is a 3rd as_of join in that file (asof_join_nearest_on_X_by_Y) that already uses numpy arrays. |
I did include a test in this PR. Is there an additional test you'd like to see? |
Ah sorry - missed the test looking from phone. And makes sense - the theory was to always use memoryviews but I don't think we ever got the practice to follow |
No worries, thanks for reviewing |
Thanks @lukemanley |
…#53513) * BUG: merge_asof raising ValueError for read-only ndarrays * gh refs
…#53513) * BUG: merge_asof raising ValueError for read-only ndarrays * gh refs
doc/source/whatsnew/v2.1.0.rst
file if fixing a bug or adding a new feature.