h2oai / h2oai/datatable

`.replace()` behavior on `void` columns

Open
#3,262 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
1.9k
Forks
164
Avg merge
7h 31m
Merged PRs (30d)
1

Description

`.replace()` [should operate](https://datatable.readthedocs.io/en/latest/api/frame/replace.html) on columns of types appropriate for the `replace_what` value. At the same time, we [declare](https://datatable.readthedocs.io/en/latest/api/type/void.html) that `void` columns can be used in place where any other type could be expected. However, it is not the case for `.replace()` and replacing missing value with anything doesn't work for `void` columns:

```python
>>> import datatable as dt
>>> DT = dt.Frame([None])
>>> DT.replace(None, 1)
>>> DT
| C0
| void
-- + ----
0 | NA
[1 row x 1 column]
```

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.