summaryrefslogtreecommitdiff
path: root/numpy/lib/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/io.py')
-rw-r--r--numpy/lib/io.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/lib/io.py b/numpy/lib/io.py
index 9199a0de2..3a962c7e1 100644
--- a/numpy/lib/io.py
+++ b/numpy/lib/io.py
@@ -300,6 +300,12 @@ def savez(file, *args, **kwds):
The .npz file format is a zipped archive of files named after the variables
they contain. Each file contains one variable in .npy format.
+ Examples
+ --------
+ >>> x = np.random.random((3, 3))
+ >>> y = np.zeros((3, 2))
+ >>> np.savez('data', x=x, y=y)
+
"""
# Import is postponed to here since zipfile depends on gzip, an optional