Answers for "how to union value without the same value in numpy"

0

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))
Posted by: Guest on June-05-2020

Code answers related to "how to union value without the same value in numpy"

Python Answers by Framework

Browse Popular Code Answers by Language