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:1365–1372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1363
1364@pytest.mark.pandas
1365def test_slice_zero_length_table():
1366 # ARROW-7907: a segfault on this code was fixed after 0.16.0
1367 table = pa.table({'a': pa.array([], type=pa.timestamp('us'))})
1368 table_slice = table.slice(0, 0)
1369 table_slice.to_pandas()
1370
1371 table = pa.table({'a': pa.chunked_array([], type=pa.string())})
1372 table.to_pandas()
1373
1374
1375@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