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

Function test_array_getitem_numpy_scalars

python/pyarrow/tests/test_array.py:460–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458
459@pytest.mark.numpy
460def test_array_getitem_numpy_scalars():
461 arr = pa.array(range(10, 15))
462 lst = arr.to_pylist()
463 # check that numpy scalars are supported
464 for idx in range(-len(arr), len(arr)):
465 assert arr[np.int32(idx)].as_py() == lst[idx]
466
467
468def test_to_pylist_bulk_paths():

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
as_pyMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected