supprimer les doublons Python
mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))
Important Iguana
mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))
import numpy as np
array = np.array([0,1,0])
print(np.unique(array))
>> [0 1]