Skip to content

BUG: Series[uintarray] failing to raise KeyError #37495

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 12 commits into from
Oct 30, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel changed the title BUG: Series[uint8array] failing to raise KeyError BUG: Series[uintarray] failing to raise KeyError Oct 29, 2020
@jreback jreback added Bug Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves labels Oct 30, 2020
@jreback jreback added this to the 1.2 milestone Oct 30, 2020
@@ -147,6 +147,17 @@ def test_getitem_intlist_multiindex_numeric_level(self, dtype, box):
with pytest.raises(KeyError, match="5"):
ser[key]

@pytest.mark.parametrize("dtype", [np.uint8, np.uint16, np.uint32, np.uint64])
Copy link
Contributor

Choose a reason for hiding this comment

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

can you create a fixture that is all numpy + all ea int dtypes (maybe call it INT_INDEXING or something) and use it here

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like there is a fixture uint_dtype that makes sense to use here, will update

Copy link
Member Author

Choose a reason for hiding this comment

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

updated+greenish

@jreback jreback merged commit 8324081 into pandas-dev:master Oct 30, 2020
@jbrockmendel jbrockmendel deleted the bug-uint-indexer branch October 30, 2020 22:49
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
* CI: 32 bit maybe_indices_to_slice

* accept either

* revert

* troubleshoot

* try again

* intp

* multiindex np.intp

* revert branched from wrong branch

* BUG: Series[uint8array] failing to raise KeyError

* use fixture
ukarroum pushed a commit to ukarroum/pandas that referenced this pull request Nov 2, 2020
* CI: 32 bit maybe_indices_to_slice

* accept either

* revert

* troubleshoot

* try again

* intp

* multiindex np.intp

* revert branched from wrong branch

* BUG: Series[uint8array] failing to raise KeyError

* use fixture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Wrong results and SegFaults when indexing with uint arrays
2 participants