Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ test_getitem_NULL
Function
test_getitem_NULL
python/pyarrow/tests/test_array.py:64–68 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
62
63
64
def
test_getitem_NULL():
65
arr = pa.array([1, None, 2])
66
assert arr[1].as_py() is None
67
assert arr[1].is_valid is False
68
assert isinstance(arr[1], pa.Int64Scalar)
69
70
71
def
test_constructor_raises():
Callers
nothing calls this directly
Calls
2
as_py
Method · 0.80
array
Method · 0.45
Tested by
no test coverage detected