Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Pandas: Merge two datasets with different names

$
0
0

I'm trying to merge datasets A and B

They have similar names but not exactly the same. I want to find the name in dataset B that best matches one in dataset A.

ex:name on A: candy, hard, blue raspberryname on B: blue, raspberry, hard candy

I tried removing commas and creating array of just words for each name in B then find the name with array that has most matches with word array in A but keep getting error.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>