Skip to content

Commit 58ea845

Browse files
committed
Fixup
1 parent 267e29d commit 58ea845

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pandas/tests/reshape/merge/test_semi.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
77

88

99
@pytest.mark.parametrize(
10-
"vals_left, vals_right",
10+
"vals_left, vals_right, dtype",
1111
[
12-
([1, 2, 3], [1, 2]),
13-
(["a", "b", "c"], ["a", "b"]),
12+
([1, 2, 3], [1, 2], "int64"),
13+
(["a", "b", "c"], ["a", "b"], "object"),
1414
pytest.param(
15-
pd.Series(["a", "b", "c"], dtype="string[pyarrow]"),
16-
pd.Series(["a", "b"], dtype="string[pyarrow]"),
15+
["a", "b", "c"],
16+
["a", "b"],
17+
"string[pyarrow]",
1718
marks=td.skip_if_no("pyarrow"),
1819
),
1920
],
2021
)
21-
def test_leftsemi(vals_left, vals_right):
22+
def test_leftsemi(vals_left, vals_right, dtype):
23+
vals_left = pd.Series(vals_left, dtype=dtype)
24+
vals_right = pd.Series(vals_right, dtype=dtype)
2225
left = pd.DataFrame({"a": vals_left, "b": [1, 2, 3]})
2326
right = pd.DataFrame({"a": vals_right, "c": 1})
2427
expected = pd.DataFrame({"a": vals_right, "b": [1, 2]})

0 commit comments

Comments
 (0)