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

Method test_simple_ints

python/pyarrow/tests/test_json.py:175–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 }
174
175 def test_simple_ints(self):
176 # Infer integer columns
177 rows = b'{"a": 1,"b": 2, "c": 3}\n{"a": 4,"b": 5, "c": 6}\n'
178 table = self.read_bytes(rows)
179 schema = pa.schema([('a', pa.int64()),
180 ('b', pa.int64()),
181 ('c', pa.int64())])
182 assert table.schema == schema
183 assert table.to_pydict() == {
184 'a': [1, 4],
185 'b': [2, 5],
186 'c': [3, 6],
187 }
188
189 def test_simple_varied(self):
190 # 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