I have the following matrix:
x = np.array([["a","b","c","d"], ["e","f","g","h"], ["i","j","k","l"], ["m","n","o","p"]])
[['a' 'b' 'c' 'd']
['e' 'f' 'g' 'h']
['i' 'j' 'k' 'l']
['m' 'n' 'o' 'p']]
How do I reshape to:
[['a' 'b' 'e' 'f']
['c' 'd' 'g' 'h']
['i' 'j' 'm' 'n']
['k' 'l' 'o' 'p']]
It tried
np.array([x.reshape(2,2) for x in x]).reshape(4,4)
but it just gives me the original matrix back.