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

Source from the content-addressed store, hash-verified

2802
2803
2804def test_table_take_non_consecutive():
2805 table = pa.table(
2806 [pa.array([1, 2, 3, None, 5]),
2807 pa.array(['a', 'b', 'c', 'd', 'e'])],
2808 ['f1', 'f2'])
2809
2810 result_non_consecutive = pa.table(
2811 [pa.array([2, None]),
2812 pa.array(['b', 'd'])],
2813 ['f1', 'f2'])
2814
2815 assert table.take(pa.array([1, 3])).equals(result_non_consecutive)
2816
2817
2818def 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