I have an array of the form :
[[ 1. , 2., 3., 1., 3., 3., 4. ],
[ 1.3, 2.3, 3.3, 3., 3.3, 3.3, 4.3 ],
[ 1.2, 2.
Look at the docs for splitting an array into multiple sub-arrays.
numpy.hsplit(ary, indices_or_sections)
Split an array into multiple sub-arrays horizontally (column-wise).
So say you have a 4x4 array A:
array([[ 0., 1., 2., 3.],
[ 4., 5., 6., 7.],
[ 8., 9., 10., 11.],
[ 12., 13., 14., 15.]])
split = numpy.hsplit(A,4) =
[array([[ 0.],
[ 4.],
[ 8.],
[ 12.]]), array([[ 1.],
[ 5.],
[ 9.],
[ 13.]]), array([[ 2.],
[ 6.],
[ 10.],
[ 14.]]), array([[ 3.],
[ 7.],
[ 11.],
[ 15.]])]