import numpy as np a = np.array([1, 2, 3, 4, 2, 3, 2, 4, 6, 3, 5]) print(np.unique(a))
[1 2 3 4 5 6]