sorry if this type of question is forbidden but I'm not familiar with the name of the data type I'm trying to achieve...
My code outputs a bunch of appended lists in the form
x = [[1, 2, 3], [2, 2, 2], [1, 4, 4]]
but I want to change the output to be in the form
[[1 2 3]
2 2 2]
1 4 4]]
similar to if I drew for example a random 'matrix' (?)
np.random.normal(0,1,size = (3, 3))
I hope someone can give me some advice on what to call these...
Thank you.
EDIT:
I answered my own question, I transferred the list into a numpy array and then reshaped via
shape = (3,3)
y = np.array(x)
y.reshape(shape)
print(y)
[[1 2 3]
[2 2 2]
[1 4 4]]