-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Compat with numpy dev argsort (radix sort added) #26373
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
Compat with numpy dev argsort (radix sort added) #26373
Conversation
numpy/numpy@12fb101 adds radix sort to np.argsort. For versions of NumPy with this change (>=1.17), we need to adjust our validator. Closes pandas-dev#26361
@@ -107,6 +108,12 @@ def validate_argmax_with_skipna(skipna, args, kwargs): | |||
ARGSORT_DEFAULTS['axis'] = -1 | |||
ARGSORT_DEFAULTS['kind'] = 'quicksort' | |||
ARGSORT_DEFAULTS['order'] = None | |||
|
|||
if LooseVersion(_np_version) >= LooseVersion("1.17.0"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is defined in pandas/compat/numpy/__init__.py
, but I don't want to create a circular import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok here
Codecov Report
@@ Coverage Diff @@
## master #26373 +/- ##
===========================================
- Coverage 91.68% 41.19% -50.49%
===========================================
Files 174 174
Lines 50700 50703 +3
===========================================
- Hits 46486 20889 -25597
- Misses 4214 29814 +25600
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26373 +/- ##
==========================================
- Coverage 91.68% 91.67% -0.01%
==========================================
Files 174 174
Lines 50700 50703 +3
==========================================
- Hits 46486 46484 -2
- Misses 4214 4219 +5
Continue to review full report at Codecov.
|
Seems like an isort update is failing on master as well. I've pushed that here, so we can get master green in a single PR. A quick review would be appreciated if anyone has time, since this is failing on master. |
lgtm. merge on green. |
numpy/numpy@12fb101
adds radix sort to np.argsort. For versions of NumPy with this change
(>=1.17), we need to adjust our validator.
Closes #26361