how to remove both duplicate entries in python pandas -
i trying remove both entries if 1 duplicate...for example if array is
(9,1,2,2,3,4)...i need output (9,1,3,4)
most of pandas methods drop_duplicates() keep either top or bottom entry. data has double duplicates , number of elements always!
so example (1,4,6,7,3,3,0,0) output should 1,4,6,7
import collections = (1,4,6,7,3,3,0,0) = [x x,y in collections.counter(a).items() if y == 1]
Comments
Post a Comment