Skip to content

Commit e33689b

Browse files
committed
ENH: improve 'incompatible tolerance' error message in merge_asof
1 parent 924b433 commit e33689b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/reshape/merge.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,8 @@ def _get_merge_keys(self):
12631263
else:
12641264
lt = left_join_keys[-1]
12651265

1266-
msg = "incompatible tolerance, must be compat " \
1267-
"with type {0}".format(type(lt))
1266+
msg = "incompatible tolerance {0}, must be compat " \
1267+
"with type {1}".format(type(tolerance), lt.dtype)
12681268

12691269
if is_datetime64_dtype(lt) or is_datetime64tz_dtype(lt):
12701270
if not isinstance(self.tolerance, Timedelta):

0 commit comments

Comments
 (0)