NPZ - Maple Help

NPZ (.npz) File Format

NPZ file format

Description

 • NPZ is a binary file format for storing data from the NumPy Python package.
 • The general-purpose commands Import and Export support this format.

Examples

Import data from a file in NPZ format.

 > $\mathrm{Import}\left("example/address.npz",\mathrm{base}=\mathrm{datadir}\right)$
 $\left[\begin{array}{cc}{"address"}& {table}{}\left(\left[{"postalCode"}{=}{"N2V 1K8"}{,}{"streetAddress"}{=}{"615 Kumpf Drive"}{,}{"province"}{=}{"ON"}{,}{"city"}{=}{"Waterloo"}{,}{"country"}{=}{"Canada"}\right]\right)\\ {"founded"}& {1988}\\ {"companyName"}& {"Maplesoft"}\\ {"phoneNumbers"}& \left[\begin{array}{ccc}{table}{}\left(\left[{"type"}{=}{"local"}{,}{"number"}{=}{"+1 \left(519\right) 747-2373"}\right]\right)& {table}{}\left(\left[{"type"}{=}{"tollfree"}{,}{"number"}{=}{"+1 \left(800\right) 267-6583"}\right]\right)& {table}{}\left(\left[{"type"}{=}{"fax"}{,}{"number"}{=}{"+1 \left(519\right) 747-5284"}\right]\right)\end{array}\right]\end{array}\right]$ (1)

References

 numpy.lib.format, https://numpy.org/devdocs/reference/generated/numpy.lib.format.html, NPY format.