我想比较两个不同长度的pandas DataFrame并确定匹配的索引号。当值匹配时,我想在新列中标记这些值。新列中的数据帧之间的标志相似性
df1:
Index Column 1
41660 Apple
41935 Banana
42100 Strawberry
42599 Pineapple
df2:
Index Column 1
42599 Pineapple
Output:
Index Column 1 'Matching Index?'
41660 Apple
41935 Banana
42100 Strawberry
42599 Pineapple True
的可能的复制[比较两列两个Python Pandas数据框并获取常用行](http://stackoverflow.com/questions/30291032/comparing-2-columns-of-two-python-pandas-dataframes-and-getting-the-common - ) – Andy