I have a dataset looks like this:
name position type
A 12 S
B 13 T
C 12 S
D 12 T
E 11 S
F 10 S
I would like to remove rows with duplicated position and type.
I tried to use the duplicated
function to find duplicate rows, but I do not know how to remove all rows with duplicate values.
dup = db[duplicated(db[2:3]),]
I want to remove rows with same position and type, but different name. My desired output is:
name position type
B 13 T
D 12 T
E 11 S
F 10 S