Pandas find common matches between 2 dataframes

前端 未结 2 2028
心在旅途
心在旅途 2021-01-29 00:05

I have 2 dataframes and I want to find common matches based on a column (tld), once match has been found, I want to update column match as True. How to update column in destinat

2条回答
  •  日久生厌
    2021-01-29 00:43

    This will achieve what you want:

    destination["match"] = destination["tld"].isin(source.tld)
    

提交回复
热议问题