Skip to content

Instantly share code, notes, and snippets.

@Svtter
Created September 6, 2018 02:43
Show Gist options
  • Save Svtter/657e675cecb20b65a6748d48f8c99b36 to your computer and use it in GitHub Desktop.
Save Svtter/657e675cecb20b65a6748d48f8c99b36 to your computer and use it in GitHub Desktop.
[npz vs npy] a difference between them #npz #npy

The .npz file format is a zipped archive of files named after the variables they contain. The archive is not compressed and each file in the archive contains one variable in .npy format. For a description of the .npy format, see numpy.lib.format.

When opening the saved .npz file with load a NpzFile object is returned. This is a dictionary-like object which can be queried for its list of arrays (with the .files attribute), and for the arrays themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment