I need to check if the elements from 'a' are contained in 'b', and save in another vector the elements that are different.
In R, I do as follows:
a <- df$v1
b <- df2$v1
c <- a[!(a %in% b)]
How can I do the same thing in Python? I tried to use (a-b), but the result returned the difference of element values. I would not like that, I would like to retrieve elements that are different from 'a' to 'b'.
Regards, Thaciana