To get all of your columns:
with open("test.txt") as infile:
l = [line.split() for line in infile]
l = map(list, zip(*l))
The value of l
is now
[['846160', '820434', '849103', '846353', '848613'],
['0.388', '-0.296', '-0.246', '0.769', '-0.365'],
['0.329', '-0.503', '-0.935', '0.929', '-0.76'],
['0.69', '-0.454', '-0.277', '0.977', '-0.305'],
['0.9', '-0.868', '-0.175', '1.095', '-0.293'],
['0.626', '-0.721', '-0.278', '1.058', '-0.364'],
['0.621', '-0.918', '-0.075', '0.864', '-0.155'],
['0.399', '-0.486', '-0.236', '0.689', '-0.472'],
['0.37', '-0.582', '-0.417', '0.492', '-0.606']]
And now to floats
l = [map(float,i) for i in l]
l
is now
[[846160.0, 820434.0, 849103.0, 846353.0, 848613.0],
[0.388, -0.296, -0.246, 0.769, -0.365],
[0.329, -0.503, -0.935, 0.929, -0.76],
[0.69, -0.454, -0.277, 0.977, -0.305],
[0.9, -0.868, -0.175, 1.095, -0.293],
[0.626, -0.721, -0.278, 1.058, -0.364],
[0.621, -0.918, -0.075, 0.864, -0.155],
[0.399, -0.486, -0.236, 0.689, -0.472],
[0.37, -0.582, -0.417, 0.492, -0.606]]