I want to put an array from inside an array into another array.
For example:
import numpy as np
x = [[1,2,3],[4,5,6],[7,8,9]]
y = [[10,11,12],[13,14,15],[16,17,18]]
How do I move [j,k,l] into x,
to form an outcome of:
x = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
y = [[13,14,15],[16,17,18]]
So far I have tried,
import numpy as np
x = [[1,2,3],[4,5,6],[7,8,9]]
y = [[10,11,12],[13,14,15],[16,17,18]]
x = x + y[1]
print(x)
However it caused an out come of:
[[1, 2, 3], [4, 5, 6], [7, 8, 9], 13, 14, 15]
And 13,14,15 is not an array?
Please help.. thanks in advance.