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

Function _create_single_file

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

Source from the content-addressed store, hash-verified

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

Calls 1

write_tableMethod · 0.45

Tested by

no test coverage detected