In this example we will show how to join NumPy arrays along rows (axis=1) in Python.
Source Code
import numpy as np
a = np.array([[1, 2], [3, 4]])
b = np.array([[5, 6], [7, 8]])
c = np.concatenate((a, b), axis=1)
print(c)
Output:
[[1 2 5 6]
[3 4 7 8]]