Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to union value without the same value in numpy

import numpy as np

c = np.array(set(a).symmetric_difference(b))

#Pure numpy 
c = np.setdiff1d(np.union1d(a, b), np.intersect1d(a, b))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #union #numpy
ADD COMMENT
Topic
Name
1+8 =