part of 2d array python code example
Example 1: python print 2d array as table
for row in A:
for val in row:
print '{:4}'.format(val),
print
Example 2: python print 2d array as table
import numpy as np
print(np.matrix(A))
Example 3: how to get last dimension of an array python
slice = myarray[:,:,i]