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

Function check_values

python/pyarrow/tests/test_array.py:1662–1664  ·  view source on GitHub ↗
(array, expected)

Source from the content-addressed store, hash-verified

1660
1661 # arr == [None, "b", 30, None, 50].
1662 def check_values(array, expected):
1663 assert [array[i].as_py() for i in range(len(array))] == expected
1664 assert array.to_pylist() == expected
1665
1666 check_values(arr, [None, "b", 30, None, 50])
1667

Calls 2

lenFunction · 0.85
as_pyMethod · 0.80

Tested by

no test coverage detected