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

[Python] Fix indexing implementations #18281

Closed
asfimport opened this issue Mar 20, 2018 · 1 comment
Closed

[Python] Fix indexing implementations #18281

asfimport opened this issue Mar 20, 2018 · 1 comment

Comments

@asfimport
Copy link
Collaborator

A number of \_\_getitem\_\_ implementations handle negative or out-of-bounds indices improperly, for example:

>>> a = pa.array([11,12,13])
>>> a[-6]
11
>>> a[-15]
11
>>> a[4]
NA
>>> a[3]
NA
>>> a[1111]
NA

Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou / @pitrou

PRs and other links:

Note: This issue was originally created as ARROW-2331. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Uwe Korn / @xhochy:
Issue resolved by pull request 1770
#1770

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

No branches or pull requests

2 participants