Python Numpy Append Función Ejemplo de agregado de matrices

# welcome to softhunt.net
# Python Program illustrating
# numpy.append()

import numpy as np

#Working on 1D
arr1 = np.arange(5)
print("1D arr1 : ", arr1)
print("Shape : ", arr1.shape)


arr2 = np.arange(8, 12)
print("\n1D arr2 : ", arr2)
print("Shape : ", arr2.shape)


# appending the arrays
arr3 = np.append(arr1, arr2)
print("\nAppended arr3 : ", arr3)
Outrageous Ostrich