I have two data frames df_semi_sup2
and df_confident_inst_no
and I want to drop all instances existing in df_confident_inst_no
from df_semi_sup2
. I made researches about that and I found the necessary code, but it dosen't give the results that I'm waiting for.
Here is the code :
for index, row in df_confident_inst_no.iterrows() :
df_semi_sup2= df_semi_sup2.drop(df_semi_sup2.index[index])
Can anyone help me find the problem in such code ?
Thanks!