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

Method test_simple_ints

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected