我想比較兩個不同長度的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