1>>> a = np.array([[1, 2], [3, 4]])
2>>> b = np.array([[5, 6]])
3>>> np.concatenate((a, b), axis=0)
4array([[1, 2],
5 [3, 4],
6 [5, 6]])
7>>> np.concatenate((a, b.T), axis=1)
8array([[1, 2, 5],
9 [3, 4, 6]])
10
1# concatenate 2 numpy arrays: row-wise
2>np.concatenate((array2D_1, array2D_2))
3
4array([[ 0, 1, 2],
5 [ 3, 4, 5],
6 [ 6, 7, 8],
7 [10, 11, 12],
8 [13, 14, 15],
9 [16, 17, 18]])
10