I have a dataframe and I want to only keep row where COL1 does not contains ("Danio_rerio") and COL2 does not contains ("Homo_sapiens")
So I used the following syntax:
df.loc[~ (df['COL1']=="Danio_rerio") & (df['COL2']=="Homo_sapiens")]
But it does not do what I whant, I'm missing something ?