We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4aa9b6 commit bc80270Copy full SHA for bc80270
pandas/core/reshape/merge.py
@@ -1671,9 +1671,8 @@ def _maybe_coerce_merge_keys(self) -> None:
1671
rk = extract_array(rk, extract_numpy=True)
1672
1673
# Explicitly disallow merging int64 and uint64 (or vice versa)
1674
- if (
1675
- (lk.dtype == np.dtype("int64") and rk.dtype == np.dtype("uint64"))
1676
- or (lk.dtype == np.dtype("uint64") and rk.dtype == np.dtype("int64"))
+ if (lk.dtype == np.dtype("int64") and rk.dtype == np.dtype("uint64")) or (
+ lk.dtype == np.dtype("uint64") and rk.dtype == np.dtype("int64")
1677
):
1678
raise ValueError(
1679
f"You are trying to merge on int64 and uint64 columns for key '{name}'. "
0 commit comments