Skip to content

Commit

Permalink
Modified test_woe_encoder_dd.py to fix the string[pyarrow]/object dty…
Browse files Browse the repository at this point in the history
…pe mismatch
  • Loading branch information
cpoli committed Mar 5, 2024
1 parent 9bf4494 commit e90f19c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gators/encoders/tests/test_woe_encoder_dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def test_no_cat_dd_np(data_no_cat):
def test_data_not_inplace_dd(data_not_inplace):
obj, X, X_expected = data_not_inplace
X_new = obj.transform(X).compute()
X_new[["A", "B", "C"]] = X_new[["A", "B", "C"]].astype("string[pyarrow]")
X_new[["A", "B", "C"]] = X_new[["A", "B", "C"]].astype(object)
X_expected[["A", "B", "C"]] = X_expected[["A", "B", "C"]].astype(object)
X_new[["A__woe", "B__woe", "C__woe"]] = X_new[
["A__woe", "B__woe", "C__woe"]
].astype(float)
Expand Down

0 comments on commit e90f19c

Please sign in to comment.