Skip to content

Commit 20df4c9

Browse files
committed
TST: Updated testcase for passing codespell
1 parent f1056be commit 20df4c9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/tests/reshape/merge/test_merge_ordered.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,19 @@ def test_list_type_by(self, left, right, on, left_by, right_by, expected):
183183

184184
def test_left_by_length_equals_to_right_shape0(self):
185185
# GH 38166
186-
left = DataFrame([["g", "h", 1], ["g", "h", 3]], columns=list("GHT"))
187-
right = DataFrame([[2, 1]], columns=list("T_E"))
188-
result = merge_ordered(left, right, on="T", left_by=["G", "H"])
186+
left = DataFrame([["g", "h", 1], ["g", "h", 3]], columns=list("GHE"))
187+
right = DataFrame([[2, 1]], columns=list("ET"))
188+
result = merge_ordered(left, right, on="E", left_by=["G", "H"])
189189
expected = DataFrame(
190-
{"G": ["g"] * 3, "H": ["h"] * 3, "T": [1, 2, 3], "E": [np.nan, 1.0, np.nan]}
190+
{"G": ["g"] * 3, "H": ["h"] * 3, "E": [1, 2, 3], "T": [np.nan, 1.0, np.nan]}
191191
)
192192

193193
tm.assert_frame_equal(result, expected)
194194

195195
def test_elements_not_in_by_but_in_df(self):
196196
# GH 38167
197-
left = DataFrame([["g", "h", 1], ["g", "h", 3]], columns=list("GHT"))
198-
right = DataFrame([[2, 1]], columns=list("T_E"))
197+
left = DataFrame([["g", "h", 1], ["g", "h", 3]], columns=list("GHE"))
198+
right = DataFrame([[2, 1]], columns=list("ET"))
199199
msg = r"\{'h'\} not found in left columns"
200200
with pytest.raises(KeyError, match=msg):
201-
merge_ordered(left, right, on="T", left_by=["G", "h"])
201+
merge_ordered(left, right, on="E", left_by=["G", "h"])

0 commit comments

Comments
 (0)