You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would be nice to have the types outputted in the error message
In [23]: left = pd.DataFrame({'a': [1, 5, 10],
...: 'left_val': ['a', 'b', 'c']})
...: right = pd.DataFrame({'a': [1, 2, 3, 6, 7],
...: 'right_val': [1, 2, 3, 6, 7]})
...:
...:
In [24]: pd.merge_asof(left, right, on='a')
Out[24]:
a left_val right_val
0 1 a 1
1 5 b 3
2 10 c 7
In [25]: pd.merge_asof(left, right.assign(a=right.a.astype('i4')), on='a')
MergeError: incompatible merge keys, must be the same type
The text was updated successfully, but these errors were encountered:
would be nice to have the types outputted in the error message
The text was updated successfully, but these errors were encountered: