You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cudf.concat([cudf.Series([1, 2]), cudf.Series([[1, 2], [3, 4]])], axis=0, ignore_index=True)
# => Raises TypeError: issubclass() arg 1 must be a class
This is because the cudf.utils.dtypes.find_common_type function is called. Inside find_common_type the pandas function pd.api.types.is_timedelta64_dtype is called with the cudf.ListDtype("int64") which only works with numpy dtypes and not the cudf list types.
importcudffromcudf.utils.dtypesimportfind_common_typeimportnumpyasnpfind_common_type({cudf.ListDtype("int64"), np.dtype("int64")})
# Raises TypeError: issubclass() arg 1 must be a class
Expected behavior
A clear and concise description of what you expected to happen.
Either:
catch case when concat is called with unsupported types and raise clear error message
behaviour similar to pandas, which supports concat list and scalar values
Describe the bug
Calling
cudf.concat
with a Series with a list dtypecudf.ListDtype("int64")
and scalar dtypenp.dtype("int64")
raises TypeError.Steps/Code to reproduce bug
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
This is because the
cudf.utils.dtypes.find_common_type
function is called. Insidefind_common_type
the pandas functionpd.api.types.is_timedelta64_dtype
is called with thecudf.ListDtype("int64")
which only works with numpy dtypes and not the cudf list types.Expected behavior
A clear and concise description of what you expected to happen.
Either:
Environment overview (please complete the following information)
docker pull
&docker run
commands usedAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: