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

Method test_header

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

Source from the content-addressed store, hash-verified

823 self.read_csv(sio)
824
825 def test_header(self):
826 rows = b"abc,def,gh\n"
827 table = self.read_bytes(rows)
828 assert isinstance(table, pa.Table)
829 self.check_names(table, ["abc", "def", "gh"])
830 assert table.num_rows == 0
831
832 def test_bom(self):
833 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