MCPcopy
hub / github.com/dask/dask / test_from_array_string_conversion

Function test_from_array_string_conversion

dask/dataframe/dask_expr/io/tests/test_io.py:421–426  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

419
420@pytest.mark.parametrize("dtype", [object, str])
421def test_from_array_string_conversion(dtype):
422 arr = np.array(["a", "b", "c", "d"], dtype=dtype)
423 result = from_array(arr, chunksize=2)
424 dtype = "string" if pyarrow_strings_enabled() else "object"
425 assert result.dtype == dtype
426 assert result.compute().dtype == dtype
427
428
429def test_from_dask_array():

Callers

nothing calls this directly

Calls 3

from_arrayFunction · 0.90
pyarrow_strings_enabledFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…