You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2020/07/13 15:53:00 UTC
[jira] [Commented] (ARROW-9432) [C++/Python] Add option to Take
kernel to interpret negative indices as indexing from the right
[ https://issues.apache.org/jira/browse/ARROW-9432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156805#comment-17156805 ]
Neal Richardson commented on ARROW-9432:
----------------------------------------
In R, negative indices means to take everything except those indices. So maybe these behaviors should be handled in Python/R, translating the requested indices to the "normal" form?
> [C++/Python] Add option to Take kernel to interpret negative indices as indexing from the right
> -----------------------------------------------------------------------------------------------
>
> Key: ARROW-9432
> URL: https://issues.apache.org/jira/browse/ARROW-9432
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++, Python
> Reporter: Uwe Korn
> Priority: Major
> Fix For: 2.0.0
>
>
> Currently negative integers are explicitly forbidding in the {{Take}} kernel. It would be nice to have the option to treat negative integers as "indices from the right" instead.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)