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

Method test_simple_ints

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

Source from the content-addressed store, hash-verified

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