Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find unique values in numpy array

>>> a = np.array([[1, 0, 0], [1, 0, 0], [2, 3, 4]])
>>> np.unique(a, axis=0)
array([[1, 0, 0], [2, 3, 4]])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #find #unique #values #numpy #array
ADD COMMENT
Topic
Name
3+8 =