https://docs.scipy.org/doc/numpy/user/quickstart.html import numpy as np a = np.array([1,2,3,4,5,6,7])alist = list(a) print( a.ndim )print( a.shape )print( a.size ) b = np.arange(x1,x2,dx)b.reshape(ny, nx) np.zero( (ny,nx) )np.ones( (ny,nx) )np.empty( (ny,nx) )np.linspace( x1,x2,numpts ) h = np.hstack( (a,a,a,...) )v = np.vstack( (a,a,a,...) ) # subsetc = d[ 1:5, 2:4, ...] a.ravel() # flattened ..