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
@btw-aak▲ 5 net votes
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.