2017-07-26 15 views

回答

2

您可以在條件前使用~否定它。

~df['Col1'].isin(list) 

df['Col1'].isin(list)將會返回True/False,則只需扳動布爾得到真正的地方Col1不在列表中。