From ac8a0652a84db2ac148deb167a0e87b7932be270 Mon Sep 17 00:00:00 2001 From: George He Date: Thu, 18 Apr 2024 10:51:41 -0400 Subject: [PATCH] Fix merge error order --- pandas/core/reshape/merge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 19e53a883d1e2..e6e84c2135b82 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -2065,8 +2065,8 @@ def _validate_left_right_on(self, left_on, right_on): or is_string_dtype(ro_dtype) ): raise MergeError( - f"Incompatible merge dtype, {ro_dtype!r} and " - f"{lo_dtype!r}, both sides must have numeric dtype" + f"Incompatible merge dtype, {lo_dtype!r} and " + f"{ro_dtype!r}, both sides must have numeric dtype" ) # add 'by' to our key-list so we can have it in the