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

Antoine Pitrou commented on ARROW-9431:
---------------------------------------

The example doesn't quite look right to me. I would expect:
{code:python}
arr1 = [a, b, c, d]
arr2 = [l, m, n, o, p]

to_replace = [0, 2, 3]

res = replace_by_index(to_replace, arr1, arr2)

# res --> [l, b, m, n]
{code}

[~uwe] What do you think?

> [C++/Python] Kernel for SetItem(IntegerArray, values)
> -----------------------------------------------------
>
>                 Key: ARROW-9431
>                 URL: https://issues.apache.org/jira/browse/ARROW-9431
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, Python
>    Affects Versions: 2.0.0
>            Reporter: Uwe Korn
>            Priority: Major
>
> We should have a kernel that allows overriding the values of an array using 
> an integer array as the indexer and a scalar or array of equal length as the 
> values.



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

Reply via email to