-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: Fix in-place permutation #12089
Conversation
It is hard to write the ideal test that would fail on master but pass in this PR since it requires a non-trivial array-like object that is Are there any classes like this in NumPy? Or are there other tests that define any that I could borrow? |
|
b1cfb5d
to
8a2249a
Compare
Thanks. works perfectly. |
Might try
As a test that currently fails. I suspect that is closer to the original. EDIT: The failing pandas case is from an object that subclasses
so it is the use of |
I'm not convinced that we can solve this problem in all generality without just making a copy, but we can make a start :) |
Alter test to check if arrays are the same to avoid in-place of some array-like objects closes numpy#11975
8a2249a
to
ec69d79
Compare
Thanks @bashtage. |
Sync upstream changes in numpy/numpy#11613, numpy/numpy#11771, and numpy/numpy#12089
Sync upstream changes in numpy#11613, numpy#11771, and numpy#12089
Sync upstream changes in numpy#11613, numpy#11771, and numpy#12089 Update to NumPy 1.12 as the minimum version Fix documentation Add information about Lemire generator Update change log Fix docstring for randint Refactor benchmark with more options Clean code for PEP8 violations Improve performance testing
Sync upstream changes in numpy#11613, numpy#11771, and numpy#12089 Update to NumPy 1.12 as the minimum version Fix documentation Add information about Lemire generator Update change log Fix docstring for randint Refactor benchmark with more options Clean code for PEP8 violations Improve performance testing
Alter test to check if arrays are the same to avoid in-place modification of some array-like objects
closes #11975