Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ test_empty_range
Function
test_empty_range
python/pyarrow/tests/test_convert_builtin.py:1795–1800 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1793
1794
1795
def
test_empty_range():
1796
arr = pa.array(range(0))
1797
assert len(arr) == 0
1798
assert arr.null_count == 0
1799
assert arr.type == pa.null()
1800
assert arr.to_pylist() == []
1801
1802
1803
def
test_structarray():
Callers
nothing calls this directly
Calls
2
len
Function · 0.85
array
Method · 0.45
Tested by
no test coverage detected