Skip to content

Commit e60bb8e

Browse files
authored
Fix merge error logging order (#58310)
Fix merge error order
1 parent a99fb7d commit e60bb8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/reshape/merge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,8 +2065,8 @@ def _validate_left_right_on(self, left_on, right_on):
20652065
or is_string_dtype(ro_dtype)
20662066
):
20672067
raise MergeError(
2068-
f"Incompatible merge dtype, {ro_dtype!r} and "
2069-
f"{lo_dtype!r}, both sides must have numeric dtype"
2068+
f"Incompatible merge dtype, {lo_dtype!r} and "
2069+
f"{ro_dtype!r}, both sides must have numeric dtype"
20702070
)
20712071

20722072
# add 'by' to our key-list so we can have it in the

0 commit comments

Comments
 (0)