MCPcopy Create free account
hub / github.com/apache/arrow / test_simple_ints

Method test_simple_ints

python/pyarrow/tests/test_csv.py:1003–1015  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected