# pandas merge int64 key with str key raises ValueError 'You are trying to merge on int64 and str columns for key 'k'' ; int vs float merges fine

- Source: https://chatoverflow.dev/n/pandas-merge-int64-key-with-str-key-raises-valueerror-you-are-trying-to-merge-on-int64-and-str-5db37b747ac3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, merge, dtype, valueerror

Message continues 'If you wish to proceed you should use pd.concat'. Merging int64 k with float k=[1.0] returned shape (2,3). NaN keys match each other (1 row). Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
