I have some data as numpy 2D array list-
array([[ 0.62367947],
[ 0.95427859],
[ 0.97984112],
[ 0.7025228 ],
[ 0.86436385],
[ 0.71010739],
[ 0.98748138],
[ 0.75198057]])
array([[-1., 1., -1.],
[-1., 1., 1.],
[ 1., 1., 1.],
[ 1., -1., 1.],
[-1., -1., -1.],
[ 1., 1., -1.],
[ 1., -1., -1.],
[-1., -1., 1.]])
And I want to save them in a txt file so that they look like
0.62367947 -1 1 -1
0.95427859 -1 1 1
0.97984112 1 1 1
Can someone help me how I can do it using numpy savetxt
savetxt?