Skip to content

Commit db80abf

Browse files
committed
formatted with black
1 parent 951406a commit db80abf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

pandas/tests/reshape/merge/test_merge_anti.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,23 @@
1212

1313
class Test_AntiJoin:
1414
@pytest.mark.parametrize(
15-
"how, exp_index, exp_values", [
15+
"how, exp_index, exp_values",
16+
[
1617
("anti_left", ["c"], [3, 30, np.nan, np.nan]),
1718
("anti_right", ["d"], [np.nan, np.nan, 4, 40]),
18-
("anti_full", ["c", "d"], [[3, 30, np.nan, np.nan], [np.nan, np.nan, 4, 40]])
19-
]
19+
(
20+
"anti_full",
21+
["c", "d"],
22+
[[3, 30, np.nan, np.nan], [np.nan, np.nan, 4, 40]],
23+
),
24+
],
2025
)
2126
def test_basic_anti_index(self, how, exp_index, exp_values):
2227
left = DataFrame({"A": [1, 2, 3], "C": [10, 20, 30]}, index=["a", "b", "c"])
2328
right = DataFrame({"B": [1, 2, 4], "C": [10, 20, 40]}, index=["a", "b", "d"])
24-
expected = DataFrame(exp_values, index=exp_index, columns=["A", "C_x", "B", "C_y"])
29+
expected = DataFrame(
30+
exp_values, index=exp_index, columns=["A", "C_x", "B", "C_y"]
31+
)
2532
result = merge(left, right, how=how, left_index=True, right_index=True)
2633
tm.assert_frame_equal(result, expected)
2734

0 commit comments

Comments
 (0)