Skip to content

Commit 7fae512

Browse files
authored
Merge pull request #907 from marketneutral/master
Add datatable by h2oai
2 parents 06bf91f + 4bcce7f commit 7fae512

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ RUN pip install flashtext && \
411411
pip install pydub && \
412412
pip install pydegensac && \
413413
pip install pytorch-lightning && \
414+
pip install datatable && \
414415
/tmp/clean-layer.sh
415416

416417
# Tesseract and some associated utility packages

tests/test_datatable.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import unittest
2+
import datatable as dt
3+
from datatable.internal import frame_integrity_check
4+
from datatable import ltype
5+
6+
class TestDatatable(unittest.TestCase):
7+
def test_fread(self):
8+
d0 = dt.fread(
9+
"L,T,U,D\n"
10+
"true,True,TRUE,1\n"
11+
"false,False,FALSE,0\n"
12+
",,,\n"
13+
)
14+
frame_integrity_check(d0)
15+
assert d0.shape == (3, 4)
16+
assert d0.ltypes == (ltype.bool,) * 4
17+
assert d0.to_list() == [[True, False, None]] * 4

0 commit comments

Comments
 (0)