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

Function test_table_take_non_consecutive

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

Source from the content-addressed store, hash-verified

2755
2756
2757def test_table_take_non_consecutive():
2758 table = pa.table(
2759 [pa.array([1, 2, 3, None, 5]),
2760 pa.array(['a', 'b', 'c', 'd', 'e'])],
2761 ['f1', 'f2'])
2762
2763 result_non_consecutive = pa.table(
2764 [pa.array([2, None]),
2765 pa.array(['b', 'd'])],
2766 ['f1', 'f2'])
2767
2768 assert table.take(pa.array([1, 3])).equals(result_non_consecutive)
2769
2770
2771def test_table_select():

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected