Converting an ndarray to the table structure often can be achieved using np.tile() and np.repeat() on the ndarray labels. If the data type in numpy is not zero copy to pyarrow, casting the expanded ...
The docs at http://docs.scipy.org/doc/numpy/reference/generated/numpy.meshgrid.html present the wrong order for nx and ny in the loop for the example. It says xv, yv ...
Physics and Python stuff. Most of the videos here are either adapted from class lectures or solving physics problems. I really like to use numerical calculations without all the fancy programming ...