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

Method test_concatenated

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

Source from the content-addressed store, hash-verified

2018 f.write(contents)
2019
2020 def test_concatenated(self):
2021 # ARROW-5974
2022 csv_path = os.path.join(self.tmpdir, self.csv_filename)
2023 with gzip.open(csv_path, 'wb', 3) as f:
2024 f.write(b"ab,cd\nef,gh\n")
2025 with gzip.open(csv_path, 'ab', 3) as f:
2026 f.write(b"ij,kl\nmn,op\n")
2027 table = self.read_csv(csv_path)
2028 assert table.to_pydict() == {
2029 'ab': ['ef', 'ij', 'mn'],
2030 'cd': ['gh', 'kl', 'op'],
2031 }
2032
2033
2034class 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