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

Function test_slice_zero_length_table

python/pyarrow/tests/test_table.py:1426–1433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1424
1425@pytest.mark.pandas
1426def test_slice_zero_length_table():
1427 # ARROW-7907: a segfault on this code was fixed after 0.16.0
1428 table = pa.table({'a': pa.array([], type=pa.timestamp('us'))})
1429 table_slice = table.slice(0, 0)
1430 table_slice.to_pandas()
1431
1432 table = pa.table({'a': pa.chunked_array([], type=pa.string())})
1433 table.to_pandas()
1434
1435
1436@pytest.mark.numpy

Callers

nothing calls this directly

Calls 4

chunked_arrayMethod · 0.80
arrayMethod · 0.45
sliceMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected