I want to print 2D array without brackets and so that elements are aligned. I went through bunch of posts and manged to remove brackets but then elements are not aligned anymore and if I print my array like it is, elements are aligned but then there are brackets.
My code is simple
a = np.asarray(b._BaseArray__data).reshape(3,3)
print(a)
Where b._BaseArray__data represents list.
So how can I print my array that will be aligned and without brackets and commas?
Current result:
[[1, 2, 3, 4]
[5, 6, 7, 8]
[9,10,11,12]]
And I want it like this:
1 2 3 4
5 6 7 8
9 10 11 12
separatorargument toprintand loop through the array