memory map npy files

python
Published

January 7, 2011

Mem-map the stored array, and then access the second row directly from disk:

X = np.load(‘/tmp/123.npy’, mmap_mode=‘r’)