Ajouter deux tableaux 1D Python
numpy.r_[a, a],
numpy.stack([a, a]).reshape(-1),
numpy.hstack([a, a]),
numpy.concatenate([a, a])
Awful Anaconda
numpy.r_[a, a],
numpy.stack([a, a]).reshape(-1),
numpy.hstack([a, a]),
numpy.concatenate([a, a])
# append two 1d arrays python
a = np.array([0, 1, 2])
b = np.array([3, 4, 5])
c = np.concatenate((a, b), axis=0)
print(c)
# Output
# [0 1 2 3 4 5]