Numpy set function
-Returns the sorted result after removing duplicates from the array elements np.unique()
-Extract and sort the elements existing in at least one of the arrays x and y np.union1d (x, y) (union)
-Extract and sort common elements from arrays x and y np.intersect1d (x, y) (intersection)
-Remove the elements common to array x and array y from array x and sort. np.setdiff1d (x, y) (difference set) etc.
Recommended Posts