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

Function _create_single_file

python/pyarrow/tests/test_dataset.py:2399–2404  ·  view source on GitHub ↗
(base_dir, table=None, row_group_size=None)

Source from the content-addressed store, hash-verified

2397
2398
2399def _create_single_file(base_dir, table=None, row_group_size=None):
2400 if table is None:
2401 table = pa.table({'a': range(9), 'b': [0.] * 4 + [1.] * 5})
2402 path = base_dir / "test.parquet"
2403 pq.write_table(table, path, row_group_size=row_group_size)
2404 return table, path
2405
2406
2407def _create_directory_of_files(base_dir):

Calls 1

write_tableMethod · 0.45

Tested by

no test coverage detected