You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2021/06/22 00:14: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=17366910#comment-17366910 ]
Wes McKinney commented on ARROW-9432:
-------------------------------------
It might be acceptable to have a slower, but smaller (in code size) implementation. For example, simply transposing the negative indices to be positive and then invoking the non-negative-Take implementation
> [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: 5.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)