File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments