Check cudf lazily (#8084)
This commit is contained in:
parent
a33f35eecf
commit
579ab23b10
@ -745,11 +745,7 @@ def _from_cudf_df(
|
|||||||
|
|
||||||
|
|
||||||
def _is_cudf_ser(data: DataType) -> bool:
|
def _is_cudf_ser(data: DataType) -> bool:
|
||||||
try:
|
return lazy_isinstance(data, "cudf.core.series", "Series")
|
||||||
import cudf
|
|
||||||
except ImportError:
|
|
||||||
return False
|
|
||||||
return isinstance(data, cudf.Series)
|
|
||||||
|
|
||||||
|
|
||||||
def _is_cupy_array(data: DataType) -> bool:
|
def _is_cupy_array(data: DataType) -> bool:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user