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

Method test_header

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

Source from the content-addressed store, hash-verified

808 self.read_csv(sio)
809
810 def test_header(self):
811 rows = b"abc,def,gh\n"
812 table = self.read_bytes(rows)
813 assert isinstance(table, pa.Table)
814 self.check_names(table, ["abc", "def", "gh"])
815 assert table.num_rows == 0
816
817 def test_bom(self):
818 rows = b"\xef\xbb\xbfa,b\n1,2\n"

Callers

nothing calls this directly

Calls 2

read_bytesMethod · 0.95
check_namesMethod · 0.45

Tested by

no test coverage detected