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

Function test_min_chunksize

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

Source from the content-addressed store, hash-verified

719
720@pytest.mark.pandas
721def test_min_chunksize():
722 data = pd.DataFrame([np.arange(4)], columns=['A', 'B', 'C', 'D'])
723 table = pa.Table.from_pandas(data.reset_index())
724
725 buf = io.BytesIO()
726 _write_table(table, buf, chunk_size=-1)
727
728 buf.seek(0)
729 result = _read_table(buf)
730
731 assert result.equals(table)
732
733 with pytest.raises(ValueError):
734 _write_table(table, buf, chunk_size=0)
735
736
737@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