I created numpy array
a = numpy.array([[1,2,3][4,5,6]])
I want to make the array look like this [[1,4],[2,5],[3,6]]
and also after I make change I want to return to the original structure.
Is there a numpy
command to run a function on all values, like a[0] * 2
? The result should be
[[2,8][2,5][3,6]
Thanks