MCPcopy Index your code
hub / github.com/dask/dask / array

Function array

dask/array/routines.py:55–61  ·  view source on GitHub ↗
(x, dtype=None, ndmin=None, *, like=None)

Source from the content-addressed store, hash-verified

53
54@derived_from(np)
55def array(x, dtype=None, ndmin=None, *, like=None):
56 x = asarray(x, like=like)
57 while ndmin is not None and x.ndim < ndmin:
58 x = x[None, :]
59 if dtype is not None and x.dtype != dtype:
60 x = x.astype(dtype)
61 return x
62
63
64@derived_from(np)

Callers 4

test_bytes_likeFunction · 0.90
test_ensure_bytesFunction · 0.90
test_ensure_unicodeFunction · 0.90
covFunction · 0.70

Calls 2

asarrayFunction · 0.90
astypeMethod · 0.45

Tested by 3

test_bytes_likeFunction · 0.72
test_ensure_bytesFunction · 0.72
test_ensure_unicodeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…