How to concatenate two NumPy arrays vertically in Python

Concatenating two NumPy arrays vertically creates a new array with each original array as a row.

Solution for How to concatenate two NumPy arrays vertically in Python : You can use np.vstack() to concatenate two arrays vertically Call np.vstack(array1, array2) to concatenate array1 and array2 vertically.


how-to-concatenate-two-numpy-arrays-vertically-in-python