From 2a990c701c7b1dec3dc3fc8483ae5cbaa5f0ef34 Mon Sep 17 00:00:00 2001 From: Rick Ratzel Date: Tue, 15 Mar 2022 23:17:02 -0500 Subject: [PATCH 1/2] Updated imports to be compatible with latest dask after https://github.com/dask/dask/pull/8796 (this change should also be compatible with dask version prior to that PR too) --- python/dask_cudf/dask_cudf/backends.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/dask_cudf/dask_cudf/backends.py b/python/dask_cudf/dask_cudf/backends.py index 505430b5cfe..3d958fbfef6 100644 --- a/python/dask_cudf/dask_cudf/backends.py +++ b/python/dask_cudf/dask_cudf/backends.py @@ -7,6 +7,8 @@ import pandas as pd import pyarrow as pa +from pandas.api.types import is_scalar + from dask.dataframe.core import get_parallel_type, meta_nonempty from dask.dataframe.dispatch import ( categorical_dtype_dispatch, @@ -22,10 +24,9 @@ UNKNOWN_CATEGORIES, _nonempty_scalar, _scalar_from_dtype, - is_arraylike, - is_scalar, make_meta_obj, ) +from dask.utils import is_arraylike from dask.sizeof import sizeof as sizeof_dispatch import cudf From 806540cb0addb7207e00ea007c09dc80ba553135 Mon Sep 17 00:00:00 2001 From: Rick Ratzel Date: Tue, 15 Mar 2022 23:53:03 -0500 Subject: [PATCH 2/2] Fixes from isort-dask-cudf check. --- python/dask_cudf/dask_cudf/backends.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/dask_cudf/dask_cudf/backends.py b/python/dask_cudf/dask_cudf/backends.py index 3d958fbfef6..dbb1109b7d3 100644 --- a/python/dask_cudf/dask_cudf/backends.py +++ b/python/dask_cudf/dask_cudf/backends.py @@ -6,7 +6,6 @@ import numpy as np import pandas as pd import pyarrow as pa - from pandas.api.types import is_scalar from dask.dataframe.core import get_parallel_type, meta_nonempty @@ -26,8 +25,8 @@ _scalar_from_dtype, make_meta_obj, ) -from dask.utils import is_arraylike from dask.sizeof import sizeof as sizeof_dispatch +from dask.utils import is_arraylike import cudf from cudf.api.types import is_string_dtype