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

Method test_header

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

Source from the content-addressed store, hash-verified

1617 self.check_reader(reader, expected_schema, [expected_data])
1618
1619 def test_header(self):
1620 rows = b"abc,def,gh\n"
1621 reader = self.open_bytes(rows)
1622 expected_schema = pa.schema([('abc', pa.null()),
1623 ('def', pa.null()),
1624 ('gh', pa.null())])
1625 self.check_reader(reader, expected_schema, [])
1626
1627 def test_inference(self):
1628 # Inference is done on first block

Callers

nothing calls this directly

Calls 3

open_bytesMethod · 0.95
check_readerMethod · 0.95
schemaMethod · 0.45

Tested by

no test coverage detected