I'm trying to remove all rows if a non unique value is found example below:
N1 N2
1 2 4
2 4 5
3 6 6
4 8 7
5 10 8
6 12 10
7 NaN 12
8 NaN 14
So in this instance the values I want is 2 5 7 and 14. Also one column is longer than the other and hence has to ignore NaN. I basically want to find repeating values and delete both from N1 and N2. This is what I tried:
df[~df.N1.isin(['N2'])]
Got some error. Thank you for your help.
Kevin