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

Method test_simple_ints

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected