h2oai / h2oai/datatable

DT[f.A == "", :] is bugged for columns with all empty strings

Open
#3,394 3 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

```Python
from datatable import dt, f

DT = dt.Frame({"A": ["", ""]})
DT[f.A == "", dt.count()][0, 0]
# 0
```

If any value in the column is not an empty string, it works as expected.

Workaround:

```Python
DT[dt.str.len(f.A) == 0, dt.count()][0, 0]
# 2
```

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.