You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2018/03/20 19:38:00 UTC

[jira] [Created] (ARROW-2331) [Python] Fix indexing implementations

Antoine Pitrou created ARROW-2331:
-------------------------------------

             Summary: [Python] Fix indexing implementations
                 Key: ARROW-2331
                 URL: https://issues.apache.org/jira/browse/ARROW-2331
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 0.9.0
            Reporter: Antoine Pitrou
            Assignee: Antoine Pitrou


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

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)