You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/05/25 14:41:00 UTC

[jira] [Commented] (ARROW-2665) [Python/C++] Add index() method to find first occurence of Python scalar

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

Wes McKinney commented on ARROW-2665:
-------------------------------------

I suggest implementing this as a short-circuiting aggregate kernel

> [Python/C++] Add index() method to find first occurence of Python scalar
> ------------------------------------------------------------------------
>
>                 Key: ARROW-2665
>                 URL: https://issues.apache.org/jira/browse/ARROW-2665
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, Python
>            Reporter: Uwe Korn
>            Priority: Major
>              Labels: Analytics, beginner
>             Fix For: 2.0.0
>
>
> Python lists have an {{index(x, start, end)}} method to find the first occurence of an element. We should add a method with the same interface supporting Python scalars on the typical triplet {{Array/ChunkedArray/Columns}}.
> See also https://docs.python.org/3.6/tutorial/datastructures.html#more-on-lists



--
This message was sent by Atlassian Jira
(v8.3.4#803005)