Skip to content

Commit 9150536

Browse files
authored
CLN: Fix typo in parameter name, standardize a bit (#53253)
* CLN: Fix typo in parameter name, standardize a bit * Update test_merge_asof.py
1 parent f2de598 commit 9150536

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/reshape/merge.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ def get_join_indexers(
16231623
"""
16241624
assert len(left_keys) == len(
16251625
right_keys
1626-
), "left_key and right_keys must be the same length"
1626+
), "left_keys and right_keys must be the same length"
16271627

16281628
# fast-path for empty left/right
16291629
left_n = len(left_keys[0])
@@ -1960,7 +1960,7 @@ def _validate_left_right_on(self, left_on, right_on):
19601960
self.right_by = [self.right_by]
19611961

19621962
if len(self.left_by) != len(self.right_by):
1963-
raise MergeError("left_by and right_by must be same length")
1963+
raise MergeError("left_by and right_by must be the same length")
19641964

19651965
left_on = self.left_by + list(left_on)
19661966
right_on = self.right_by + list(right_on)

pandas/tests/reshape/merge/test_merge_asof.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def test_multiby_indexed(self):
455455
tm.assert_frame_equal(expected, result)
456456

457457
with pytest.raises(
458-
MergeError, match="left_by and right_by must be same length"
458+
MergeError, match="left_by and right_by must be the same length"
459459
):
460460
merge_asof(
461461
left,

0 commit comments

Comments
 (0)