Skip to content
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: get_indexer_non_unique not excluding boolean like get_indexer #38052

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

There's a check in get_indexer that is missing from get_indexer_non_unique, which this adds. This is going to make some de-duplication easier.

Hard to find a user-facing example bc indexing with all-bool indexer we treat it as a mask and not a list of labels. The closest I got to a user-facing example was in Series.drop, but that ran in to #38051.

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Nov 26, 2020
@jreback jreback added this to the 1.2 milestone Nov 26, 2020
@jreback jreback merged commit 14e0d12 into pandas-dev:master Nov 26, 2020
@jbrockmendel jbrockmendel deleted the ref-get_indexer branch November 26, 2020 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants