I have two numpy arrays:
a = np.array([[0,0,1],
[0,1,0],
[0,1,1],
[1,1,1],
[1,1,0],
[0,0,0]])
b = np.array([9,9,9])
What is the easiest way to append array b into each row of array a?
The output should look like this:
c = np.array([[0,0,1,9,9,9],
[0,1,0,9,9,9],
[0,1,1,9,9,9],
[1,1,1,9,9,9],
[1,1,0,9,9,9],
[0,0,0,9,9,9]])