Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ _as_numpy_array
Function
_as_numpy_array
python/pyarrow/tests/test_convert_builtin.py:162–165 ·
view source on GitHub ↗
(xs)
Source
from the content-addressed store, hash-verified
160
161
162
def
_as_numpy_array(xs):
163
arr = np.empty(len(xs), dtype=object)
164
arr[:] = xs
165
return
arr
166
167
168
def
_as_set(xs):
Callers
nothing calls this directly
Calls
2
len
Function · 0.85
empty
Method · 0.45
Tested by
no test coverage detected