(self)
| 985 | } |
| 986 | |
| 987 | def test_simple_ints(self): |
| 988 | # Infer integer columns |
| 989 | rows = b"a,b,c\n1,2,3\n4,5,6\n" |
| 990 | table = self.read_bytes(rows) |
| 991 | schema = pa.schema([('a', pa.int64()), |
| 992 | ('b', pa.int64()), |
| 993 | ('c', pa.int64())]) |
| 994 | assert table.schema == schema |
| 995 | assert table.to_pydict() == { |
| 996 | 'a': [1, 4], |
| 997 | 'b': [2, 5], |
| 998 | 'c': [3, 6], |
| 999 | } |
| 1000 | |
| 1001 | def test_simple_varied(self): |
| 1002 | # Infer various kinds of data |
nothing calls this directly
no test coverage detected