有两个df
df1
0 1
1234 mark
4865 john
4866 joseph
7916 stuart
df2
0 1 2
1234 mark test1
4865 john test2
4866 joseph test3
预期输出:
从数据框中获取唯一行进行比较,并在df1中显示唯一列
df1
0 1
7916 stuart
答案 0 :(得分:1)
您可以尝试以下方法
<div class=screen>
<p>Start text blinking in 2 seconds, cursor in 2.5 seconds:
<p><span class="fadeBlinkText">BLINK BLINK</span><span class="fadeBlinkCursor">|</span>
</div>
df1[(~df1['0'].isin(df2['0'])) & (~df1['1'].isin(df2['1']))]