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

Source from the content-addressed store, hash-verified

1316
1317@pytest.mark.pandas
1318def test_slice_zero_length_table():
1319 # ARROW-7907: a segfault on this code was fixed after 0.16.0
1320 table = pa.table({'a': pa.array([], type=pa.timestamp('us'))})
1321 table_slice = table.slice(0, 0)
1322 table_slice.to_pandas()
1323
1324 table = pa.table({'a': pa.chunked_array([], type=pa.string())})
1325 table.to_pandas()
1326
1327
1328@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