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

Function test_min_chunksize

python/pyarrow/tests/parquet/test_basic.py:738–751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

736
737@pytest.mark.pandas
738def test_min_chunksize():
739 data = pd.DataFrame([np.arange(4)], columns=['A', 'B', 'C', 'D'])
740 table = pa.Table.from_pandas(data.reset_index())
741
742 buf = io.BytesIO()
743 _write_table(table, buf, chunk_size=-1)
744
745 buf.seek(0)
746 result = _read_table(buf)
747
748 assert result.equals(table)
749
750 with pytest.raises(ValueError):
751 _write_table(table, buf, chunk_size=0)
752
753
754@pytest.mark.pandas

Callers

nothing calls this directly

Calls 4

_write_tableFunction · 0.90
_read_tableFunction · 0.90
seekMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected