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

Function test_table_take_null_index

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

Source from the content-addressed store, hash-verified

2741
2742
2743def test_table_take_null_index():
2744 table = pa.table(
2745 [pa.array([1, 2, 3, None, 5]),
2746 pa.array(['a', 'b', 'c', 'd', 'e'])],
2747 ['f1', 'f2'])
2748
2749 result_with_null_index = pa.table(
2750 [pa.array([1, None]),
2751 pa.array(['a', None])],
2752 ['f1', 'f2'])
2753
2754 assert table.take(pa.array([0, None])).equals(result_with_null_index)
2755
2756
2757def test_table_take_non_consecutive():

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected