Skip to content

Commit

Permalink
Merge pull request #907 from marketneutral/master
Browse files Browse the repository at this point in the history
Add datatable by h2oai
  • Loading branch information
rosbo authored Dec 2, 2020
2 parents 06bf91f + 4bcce7f commit 7fae512
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ RUN pip install flashtext && \
pip install pydub && \
pip install pydegensac && \
pip install pytorch-lightning && \
pip install datatable && \
/tmp/clean-layer.sh

# Tesseract and some associated utility packages
Expand Down
17 changes: 17 additions & 0 deletions tests/test_datatable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import unittest
import datatable as dt
from datatable.internal import frame_integrity_check
from datatable import ltype

class TestDatatable(unittest.TestCase):
def test_fread(self):
d0 = dt.fread(
"L,T,U,D\n"
"true,True,TRUE,1\n"
"false,False,FALSE,0\n"
",,,\n"
)
frame_integrity_check(d0)
assert d0.shape == (3, 4)
assert d0.ltypes == (ltype.bool,) * 4
assert d0.to_list() == [[True, False, None]] * 4

0 comments on commit 7fae512

Please sign in to comment.