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

Function _create_single_file

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

Source from the content-addressed store, hash-verified

2391
2392
2393def _create_single_file(base_dir, table=None, row_group_size=None):
2394 if table is None:
2395 table = pa.table({'a': range(9), 'b': [0.] * 4 + [1.] * 5})
2396 path = base_dir / "test.parquet"
2397 pq.write_table(table, path, row_group_size=row_group_size)
2398 return table, path
2399
2400
2401def _create_directory_of_files(base_dir):

Calls 1

write_tableMethod · 0.45

Tested by

no test coverage detected