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

2020-05-25 Thread Wes McKinney (Jira)


[ 
https://issues.apache.org/jira/browse/ARROW-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)


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

2020-04-10 Thread Wes McKinney (Jira)


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

Wes McKinney commented on ARROW-2665:
-

It need not be a "kernel" per se, but having a function to compute the index 
given a scalar value might be useful

> [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)


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

2018-06-06 Thread Krisztian Szucs (JIRA)


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

Krisztian Szucs commented on ARROW-2665:


~wesm Do we need to implement a kernel for this?

> [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 L. Korn
>Priority: Major
>
> 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
(v7.6.3#76005)


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

2018-06-04 Thread Uwe L. Korn (JIRA)


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

Uwe L. Korn commented on ARROW-2665:


Yes, they need to live on the cpp side as this is an element-wise operation on 
an array.

> [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 L. Korn
>Priority: Major
>
> 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
(v7.6.3#76005)