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

Source from the content-addressed store, hash-verified

2863
2864
2865def test_table_take_non_consecutive():
2866 table = pa.table(
2867 [pa.array([1, 2, 3, None, 5]),
2868 pa.array(['a', 'b', 'c', 'd', 'e'])],
2869 ['f1', 'f2'])
2870
2871 result_non_consecutive = pa.table(
2872 [pa.array([2, None]),
2873 pa.array(['b', 'd'])],
2874 ['f1', 'f2'])
2875
2876 assert table.take(pa.array([1, 3])).equals(result_non_consecutive)
2877
2878
2879def 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