h2oai / h2oai/datatable

`.replace()` doesn't work for `time64` columns

Open
#3,173 0 comments 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

It seems that `.replace()` doesn't have any effect when replacing times:

```python
from datatable import dt
from datetime import datetime as d

DT = dt.Frame([d(2000, 1, 1, 1, 1)])
DT.replace({d(2000, 1, 1, 1, 1) : d(2222, 1, 1, 1, 1)})
print(DT)
```

produces
```
| C0
| time64
-- + -------------------
0 | 2000-01-01T01:01:00
[1 row x 1 column]
```

should be
```
| C0
| time64
-- + -------------------
0 | 2222-01-01T01:01:00
[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.