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

Function test_table_take_vanilla_functionality

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

Source from the content-addressed store, hash-verified

2732
2733
2734def test_table_take_vanilla_functionality():
2735 table = pa.table(
2736 [pa.array([1, 2, 3, None, 5]),
2737 pa.array(['a', 'b', 'c', 'd', 'e'])],
2738 ['f1', 'f2'])
2739
2740 assert table.take(pa.array([2, 3])).equals(table.slice(2, 2))
2741
2742
2743def test_table_take_null_index():

Callers

nothing calls this directly

Calls 4

equalsMethod · 0.80
arrayMethod · 0.45
takeMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected