how to append two numpy arrays

33

numpy.concatenate([arr1, arr2]) # Joining arr1 and arr2
a = np.array([1, 2, 3, 4])
b = np.array([5, 6, 7, 8])
np.concatenate((a, b))

Comments

Submit
0 Comments