np.save and np.load code example
Example 1: np.save function
np.save('data.npy', num_arr)
new_num_arr = np.load('data.npy')
Example 2: python load array
>>> from numpy import *
>>>
>>> data = loadtxt("myfile.txt")
>>> t,z = data[:,0], data[:,3]
>>>
>>> t,x,y,z = loadtxt("myfile.txt", unpack=True)
>>> t,z = loadtxt("myfile.txt", usecols = (0,3), unpack=True)
>>> data = loadtxt("myfile.txt", skiprows = 7)
>>> data = loadtxt("myfile.txt", comments = '!')
>>> data = loadtxt("myfile.txt", delimiter=';')
>>> data = loadtxt("myfile.txt", dtype = int)