I have an array like the following,
from numpy import * a=array([1,2,3,4,5,6,7,8,9])
I want to get the result as follows
[[1,4,7],[2,5,8],[3,6,9]]
Because I have a large array. So I need an effective way to do this. And itβs better to change it in place.
source share