Skip to content

Commit

Permalink
Update test_decimal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar authored Sep 22, 2023
1 parent 020ca15 commit cbb4cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cudf/cudf/tests/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def test_from_arrow_max_precision_decimal32():
)
def test_typecast_from_float_to_decimal(data, from_dtype, to_dtype):
got = data.astype(from_dtype)
import pdb;pdb.set_trace()

pa_arr = got.to_arrow().cast(
pa.decimal128(to_dtype.precision, to_dtype.scale)
)
expected = cudf.Series(Decimal64Column.from_arrow(pa_arr))

new_got = got.astype(to_dtype)
got = got.astype(to_dtype)

assert_eq(new_got, expected)

Expand Down

0 comments on commit cbb4cb6

Please sign in to comment.