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

Source from the content-addressed store, hash-verified

2840
2841
2842def test_table_take_vanilla_functionality():
2843 table = pa.table(
2844 [pa.array([1, 2, 3, None, 5]),
2845 pa.array(['a', 'b', 'c', 'd', 'e'])],
2846 ['f1', 'f2'])
2847
2848 assert table.take(pa.array([2, 3])).equals(table.slice(2, 2))
2849
2850
2851def 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