Skip to content

REF: implement Index._get_indexer_strict #42485

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 4 commits into from
Jul 15, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

xref #27181, a couple more steps to get that all the way accomplished

@jbrockmendel jbrockmendel added Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex labels Jul 11, 2021

self._raise_if_missing(keyarr, indexer, axis_name)

if (
Copy link
Contributor

Choose a reason for hiding this comment

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

is_extension_array_dtype?

Copy link
Member Author

Choose a reason for hiding this comment

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

also dt64 and td64. im pretty sure we should actually be doing this (.take on L5416) unconditionally, but that breaks a few tests which i think are wrong, so thats not ready yet


if nmissing:

# TODO: remove special-case; this is just to keep exception
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this mean?

Copy link
Member Author

Choose a reason for hiding this comment

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

when we removed IntervalIndex._convert_listlike_indexer we put special-casing here to keep the exception message unchanged. This comment is to remove that special-casing.

@jbrockmendel
Copy link
Member Author

rebased + greenish

@jbrockmendel
Copy link
Member Author

@jreback gentle ping, this unblocks the last 2 MultiIndex PRs on deck

@jreback jreback added this to the 1.4 milestone Jul 15, 2021
@jreback jreback merged commit 829d16e into pandas-dev:master Jul 15, 2021
@jbrockmendel jbrockmendel deleted the ref-get_indexer_strict branch July 16, 2021 04:51
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
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 MultiIndex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants