Skip to content

Commit

Permalink
test: xfail to_dummies with drop_first test for cuDF (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors authored Sep 11, 2024
1 parent 84b53bf commit 90476a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/series_only/to_dummy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def test_to_dummies(constructor_eager: Any, sep: str) -> None:


@pytest.mark.parametrize("sep", ["_", "-"])
def test_to_dummies_drop_first(constructor_eager: Any, sep: str) -> None:
def test_to_dummies_drop_first(request: Any, constructor_eager: Any, sep: str) -> None:
if "cudf" in str(constructor_eager):
request.applymarker(pytest.mark.xfail)
s = nw.from_native(constructor_eager({"a": data}), eager_only=True)["a"].alias("a")
result = s.to_dummies(drop_first=True, separator=sep)
expected = {f"a{sep}2": [0, 1, 0], f"a{sep}3": [0, 0, 1]}
Expand Down

0 comments on commit 90476a2

Please sign in to comment.