Skip to content

API: Added axis to take #20999

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

Merged
merged 1 commit into from
May 10, 2018
Merged

API: Added axis to take #20999

merged 1 commit into from
May 10, 2018

Conversation

TomAugspurger
Copy link
Contributor

One thing that's worrisome here: for N-D arrays, the fill_value argument is set for each element. In the case of IPArray, this is fine, since my storage NA-value is (0, 0), so I would pass fill_value=0. But in general, when people are using an N-D array to back a 1-D column, that won't necessarily work. But at that point, maybe we recommend people implement take on their own.

@TomAugspurger TomAugspurger added Indexing Related to indexing on series/frames, not to indexes themselves ExtensionArray Extending pandas with custom dtypes or arrays. labels May 10, 2018
@TomAugspurger TomAugspurger added this to the 0.23.0 milestone May 10, 2018
@codecov
Copy link

codecov bot commented May 10, 2018

Codecov Report

Merging #20999 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #20999   +/-   ##
=======================================
  Coverage   91.82%   91.82%           
=======================================
  Files         153      153           
  Lines       49491    49491           
=======================================
  Hits        45446    45446           
  Misses       4045     4045
Flag Coverage Δ
#multiple 90.22% <100%> (ø) ⬆️
#single 41.85% <66.66%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/algorithms.py 94.5% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d5d701...82bc8c9. Read the comment docs.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@jreback jreback merged commit 8e2a4a9 into pandas-dev:master May 10, 2018
@jreback
Copy link
Contributor

jreback commented May 10, 2018

lgtm. thanks @TomAugspurger

topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 13, 2018
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: expose axis keyword in pandas.core.algorithms.take
3 participants