(self)
| 1000 | } |
| 1001 | |
| 1002 | def test_simple_ints(self): |
| 1003 | # Infer integer columns |
| 1004 | rows = b"a,b,c\n1,2,3\n4,5,6\n" |
| 1005 | table = self.read_bytes(rows) |
| 1006 | schema = pa.schema([('a', pa.int64()), |
| 1007 | ('b', pa.int64()), |
| 1008 | ('c', pa.int64())]) |
| 1009 | assert table.schema == schema |
| 1010 | assert table.to_pydict() == { |
| 1011 | 'a': [1, 4], |
| 1012 | 'b': [2, 5], |
| 1013 | 'c': [3, 6], |
| 1014 | } |
| 1015 | |
| 1016 | def test_simple_varied(self): |
| 1017 | # Infer various kinds of data |
nothing calls this directly
no test coverage detected