Skip to content

Commit

Permalink
Fixup pylibcudf transition
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Berg <[email protected]>
  • Loading branch information
seberg committed Dec 5, 2024
1 parent d80db36 commit d5635f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/legate_dataframe/lib/core/data_type.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from pylibcudf.types cimport DataType
from pylibcudf.types cimport data_type as cpp_cudf_type

import cudf
from cudf._lib import pylibcudf
import pylibcudf
from cudf._lib.types import PYLIBCUDF_TO_SUPPORTED_NUMPY_TYPES, dtype_to_pylibcudf_type
from numpy.typing import DTypeLike

Expand Down
4 changes: 2 additions & 2 deletions python/tests/test_binaryop.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def test_scalar_input(cudf_column, op, scalar):

res = binary_operation(col, scalar, op, cudf_column.dtype)
expect = cudf_binaryop(cudf_column, cudf_scalar, op_str, cudf_column.dtype)
assert_frame_equal(res, cudf.Series(expect))
assert_frame_equal(res, expect)

res = binary_operation(scalar, col, op, cudf_column.dtype)
expect = cudf_binaryop(cudf_scalar, cudf_column, op_str, cudf_column.dtype)
assert_frame_equal(res, cudf.Series(expect))
assert_frame_equal(res, expect)

with pytest.raises(ValueError, match="both inputs cannot be scalars"):
binary_operation(scalar, scalar, op, cudf_column.dtype)

0 comments on commit d5635f7

Please sign in to comment.