MCPcopy
hub / github.com/dask/dask / test_to_numeric_on_dask_array

Function test_to_numeric_on_dask_array

dask/dataframe/tests/test_numeric.py:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_to_numeric_on_dask_array():
23 arg = from_array(["1.0", "2", "-3", "5.1"])
24 expected = np.array([1.0, 2.0, -3.0, 5.1])
25 output = to_numeric(arg)
26 expected_dtype = "int64"
27 assert output.dtype == expected_dtype
28 assert isinstance(output, Array)
29 assert list(output.compute()) == list(expected)
30
31
32def test_to_numeric_on_dask_array_with_meta():

Callers

nothing calls this directly

Calls 3

from_arrayFunction · 0.90
to_numericFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…