dataDf1 = pd.DataFrame({'value': [1, 2, 3, 4]}) dataDf2 = pd.DataFrame({'value': [5, 6, 3, 4]}) print(dataDf1) print(dataDf2) isin的用法 sinfo = dataDf1[~dataDf1['value'].isin(dataDf2['value'])] isin的取反 sinfo = dataDf1[~dataDf1['value'].isin(dataDf2['value'])] print(sinfo)