[ 
https://issues.apache.org/jira/browse/ARROW-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16410296#comment-16410296
 ] 

ASF GitHub Bot commented on ARROW-2331:
---------------------------------------

wesm commented on issue #1770: ARROW-2331: [Python] Fix indexing for negative 
or out-of-bounds indices
URL: https://github.com/apache/arrow/pull/1770#issuecomment-375455237
 
 
   Looks like we have a Windows int64->int cast issue. I can take a look if 
that would help

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [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
>            Priority: Minor
>              Labels: pull-request-available
>
> 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)

Reply via email to