ENH: new function `replace`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with the contributor guide at data-apis.org/array-api-extra/contributing.html, then inspect existing array functions using xp.where and xp.equals. Add the proposed xp.replace(array, old, new) behavior and verify that the function is exposed and tested consistently with the project’s existing conventions.
Written by the indexing model from the issue text.
Description
From https://hackmd.io/zn5bvdZTQIeJmb3RW1B-8g?both#Updates-from-the-sparse-array-ecosystem-Willow, @willow-ahrens suggested an xp.replace(array, old, new) function, which could have the agnostic implementation xp.where(xp.equals(...), old, new ).
@willow-ahrens if you'd like to work on this, we have contributor docs at https://data-apis.org/array-api-extra/contributing.html.
- Dominant language
- Python
- Stars
- 33
- Forks
- 32
- Avg merge
- 5h 58m
- Merged PRs (30d)
- 47
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from data-apis/array-api-extra
-
testing
Difficulty 3/5 1-2 days Newbie friendliness 55/100
data-apis/array-api-extra#901 · 3 comments ·
-
testing upstream issue
Difficulty 3/5 1-2 days Newbie friendliness 45/100
data-apis/array-api-extra#900 · 8 comments ·
-
blocked testing xpx.testing
Difficulty 5/5 Over a week Newbie friendliness 30/100
data-apis/array-api-extra#833 · 1 comment · 1 reaction ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 55/100
data-apis/array-api-extra#811 · 1 comment · 1 reaction ·
-
CI static typing
Difficulty 4/5 3-5 days Newbie friendliness 35/100
data-apis/array-api-extra#696 ·
All issues in data-apis/array-api-extra
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·