hsp.loc[hsp['Len_old'] == hsp['Len_new']]
I try this code, it's working.
But I tried these three
hsp.loc[hsp['Type_old'] == hsp['Type_new']]
hsp.loc[hsp['Type_old'] != hsp['Type_new']]
hsp.loc[hsp['Len_old'] != hsp['Len_new']]
They are not working.
My data table hsp is like
id Type_old Type_new Len_old Len_new
1 Num Num 15 15
2 Num Char 12 12
3 Char Num 10 8
4 Num Num 4 5
5 Char Char 9 10
Is there a better approach to select rows where two columns are not queal.