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

Function _create_parquet_dataset_partitioned

python/pyarrow/tests/test_dataset.py:3926–3934  ·  view source on GitHub ↗
(root_path)

Source from the content-addressed store, hash-verified

3924
3925
3926def _create_parquet_dataset_partitioned(root_path):
3927 table = pa.table([
3928 pa.array(range(20)), pa.array(np.random.randn(20)),
3929 pa.array(np.repeat(['a', 'b'], 10))],
3930 names=["f1", "f2", "part"]
3931 )
3932 table = table.replace_schema_metadata({"key": "value"})
3933 pq.write_to_dataset(table, str(root_path), partition_cols=['part'])
3934 return _create_metadata_file(root_path), table
3935
3936
3937@pytest.mark.parquet

Calls 2

_create_metadata_fileFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected