Skip to content

Conversation

@phofl
Copy link
Member

@phofl phofl commented Dec 10, 2022

@phofl phofl added Indexing Related to indexing on series/frames, not to indexes themselves Index Related to the Index class or subclasses NA - MaskedArrays Related to pd.NA and nullable extension arrays labels Dec 10, 2022
tm.assert_series_equal(ser, expected)


def test_loc_ea_numeric_index_oob_slice_end():
Copy link
Member

Choose a reason for hiding this comment

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

Could you also add a test for a pyarrow-backed numeric type?

Copy link
Member Author

Choose a reason for hiding this comment

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

This would fail, int64[pyarrow] returns false in is_numeric_dtype. Is this expected? Index.is_numeric will be deprecated, so should not use that either

Copy link
Member

Choose a reason for hiding this comment

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

Ah. I think all the dtype checkers should become pyarrow aware eventually but okay not to tackle that in this PR

@mroeschke mroeschke added this to the 2.0 milestone Dec 17, 2022
@mroeschke mroeschke merged commit 3da778c into pandas-dev:main Dec 17, 2022
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the 50161 branch December 17, 2022 22:36
Copy link
Contributor

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @phofl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Index Related to the Index class or subclasses Indexing Related to indexing on series/frames, not to indexes themselves NA - MaskedArrays Related to pd.NA and nullable extension arrays

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Series slicing can fail for extension array Index

3 participants