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

Method test_concatenated

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

Source from the content-addressed store, hash-verified

1948 f.write(contents)
1949
1950 def test_concatenated(self):
1951 # ARROW-5974
1952 csv_path = os.path.join(self.tmpdir, self.csv_filename)
1953 with gzip.open(csv_path, 'wb', 3) as f:
1954 f.write(b"ab,cd\nef,gh\n")
1955 with gzip.open(csv_path, 'ab', 3) as f:
1956 f.write(b"ij,kl\nmn,op\n")
1957 table = self.read_csv(csv_path)
1958 assert table.to_pydict() == {
1959 'ab': ['ef', 'ij', 'mn'],
1960 'cd': ['gh', 'kl', 'op'],
1961 }
1962
1963
1964class TestBZ2CSVRead(BaseTestCompressedCSVRead, unittest.TestCase):

Callers

nothing calls this directly

Calls 4

joinMethod · 0.45
openMethod · 0.45
writeMethod · 0.45
read_csvMethod · 0.45

Tested by

no test coverage detected