apache / apache/arrow

[C++/Python] Kernel for SetItem(IntegerArray, values) ("replace_with_indices")

Open
#25,505 26 comments 0 reactions 1 assignee Claimed by @Kanishk-Dendukuri View on GitHub
Component: C++ Component: Python Status: needs champion Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

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.

**Reporter**: [Uwe Korn](https://issues.apache.org/jira/browse/ARROW-9431) / @xhochy
#### Related issues:
- [[C++] String algorithm library for StringArray/BinaryArray](https://github.com/apache/arrow/issues/16192) (is a child of)
- [[C++/Python] Kernel for SetItem(BooleanArray, values)](https://github.com/apache/arrow/issues/25504) (relates to)
- [[C++] Add "replace" kernel](https://github.com/apache/arrow/issues/26960) (is related to)
- [[R] Implement updating values via square brackets not implemented](https://github.com/apache/arrow/issues/30118) (is depended upon by)
- [[C++/Python] Support necessary functionality to have an Arrow-string type in pandas](https://github.com/apache/arrow/issues/25481) (is depended upon by)

**Note**: *This issue was originally created as [ARROW-9431](https://issues.apache.org/jira/browse/ARROW-9431). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.