-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: implement array_algos.take #39948
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
Conversation
jbrockmendel
commented
Feb 21, 2021
- closes #xxxx
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
if you can rebase |
rebased + green |
maybe just more all of algorithms.py to array_algos? though i think these should probably be in somewhat separated modules rather than one giant one. so ok with moveing take but let's put it separate as its pretty meaty by itself. |
there are some that depend on Index/Series, so they dont all fit |
|
||
return func2 | ||
|
||
|
||
def take( |
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.
how are we not moving this?
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.
its high-level and i dont want to futz with updating imports everywhere else
k thanks |
if fill_value is lib.no_default: | ||
fill_value = na_value_for_dtype(arr.dtype, compat=False) | ||
|
||
arr = extract_array(arr, extract_numpy=True) |
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.
"array algos" should only deal with arrays IMO
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.
good catch, will fix in follow-up