I have a dataframe:
df = pd.Dataframe({'src':['A','B','C'],'trg':['A','C','B'],'wgt':[1,3,7]})
I want to drop the duplicates from this dataframe for columns src and trg
df = df.drop_duplicates(subset=['src','trg'],keep='first',inplace=False)
This should drop the first row where src=A and trg='A'
But this is not happening. There is no change in the dataframe. What am I doing wrong ?

df[df['src'] != df['trg']]?B Cas source and target, that row will be dropped.