you can use a memory-mapped numpy array from your .npy file: https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.memmap.html 1.2k
That way it still stays on disk and loads the rows you ask on the fly.