I have two pandas df x and y, both with the same 3 columns A B C (not nullable). I need to create a new df z, obtained by \"subtracting from x the rows which are entirely id
I think need merge with indicator and filter only rows from left DataFrame:
left
DataFrame
df = x.merge(y, indicator='i', how='outer').query('i == "left_only"').drop('i', 1) print (df) A B C 0 q1 q2 q3 2 q7 q2 q93