Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy unique axis

#As of NumPy 1.13, one can simply choose the axis for selection of unique values in any N-dim array. To get unique rows, one can do:
import numpy as np
unique_rows = np.unique(original_array, axis=0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #unique #axis
ADD COMMENT
Topic
Name
2+1 =