MCPcopy Create free account
hub / github.com/dask/dask / test_pyarrow_conversion_dispatch_cudf

Function test_pyarrow_conversion_dispatch_cudf

dask/dataframe/tests/test_dataframe.py:5274–5286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5272
5273@pytest.mark.gpu
5274def test_pyarrow_conversion_dispatch_cudf():
5275 from dask.dataframe.dispatch import (
5276 from_pyarrow_table_dispatch,
5277 to_pyarrow_table_dispatch,
5278 )
5279
5280 cudf = pytest.importorskip("cudf")
5281
5282 df1 = cudf.DataFrame(np.random.randn(10, 3), columns=list("abc"))
5283 df2 = from_pyarrow_table_dispatch(df1, to_pyarrow_table_dispatch(df1))
5284
5285 assert type(df1) == type(df2)
5286 assert_eq(df1, df2)
5287
5288
5289def test_enforce_runtime_divisions():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected