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

Function test_asarray_dask_dataframe

dask/array/tests/test_array_core.py:3082–3095  ·  view source on GitHub ↗
(asarray)

Source from the content-addressed store, hash-verified

3080
3081@pytest.mark.parametrize("asarray", [da.asarray, da.asanyarray])
3082def test_asarray_dask_dataframe(asarray):
3083 # https://github.com/dask/dask/issues/3885
3084 pd = pytest.importorskip("pandas")
3085 dd = pytest.importorskip("dask.dataframe")
3086
3087 s = dd.from_pandas(pd.Series([1, 2, 3, 4]), 2)
3088 result = asarray(s)
3089 expected = s.values
3090 assert_eq(result, expected)
3091
3092 df = s.to_frame(name="s")
3093 result = asarray(df)
3094 expected = df.values
3095 assert_eq(result, expected)
3096
3097
3098@pytest.mark.parametrize("asarray", [da.asarray, da.asanyarray])

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
asarrayFunction · 0.50
to_frameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…