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

Function _write_table

python/pyarrow/tests/parquet/common.py:29–38  ·  view source on GitHub ↗
(table, path, **kwargs)

Source from the content-addressed store, hash-verified

27
28
29def _write_table(table, path, **kwargs):
30 # So we see the ImportError somewhere
31 import pyarrow.parquet as pq
32 from pyarrow.pandas_compat import _pandas_api
33
34 if _pandas_api.is_data_frame(table):
35 table = pa.Table.from_pandas(table)
36
37 pq.write_table(table, path, **kwargs)
38 return table
39
40
41def _read_table(*args, **kwargs):

Callers 15

test_memory_mapFunction · 0.90
test_multiple_path_typesFunction · 0.90
test_fspathFunction · 0.90
test_compression_levelFunction · 0.90
test_multithreaded_readFunction · 0.90
test_min_chunksizeFunction · 0.90

Calls 1

write_tableMethod · 0.45

Tested by 15

test_memory_mapFunction · 0.72
test_multiple_path_typesFunction · 0.72
test_fspathFunction · 0.72
test_compression_levelFunction · 0.72
test_multithreaded_readFunction · 0.72
test_min_chunksizeFunction · 0.72