I am dealing with this example DataFrame:
A B C
1 Cat 0 Missing
2 Dog Dog Match
3 Cat Cat Match
I would like to remove row[1] as it meets the condition of 'C' == "Missing"
and 'A'.isin('B')
Could use help writing this.
Currently I have tried;
if df['C'] == "Missing":
df = df.loc[~df.A.isin(B)]
But no luck thus far. Thanks.