load(file[, mmap_mode, allow_pickle, …])
load
Load arrays or pickled objects from .npy, .npz or pickled files.
.npy
.npz
save(file, arr[, allow_pickle, fix_imports])
save
Save an array to a binary file in NumPy .npy format.
savez(file, *args, **kwds)
savez
Save several arrays into a single file in uncompressed .npz format.
savez_compressed(file, *args, **kwds)
savez_compressed
Save several arrays into a single file in compressed .npz format.
The format of these binary file types is documented in numpy.lib.format
numpy.lib.format
loadtxt(fname[, dtype, comments, delimiter, …])
loadtxt
Load data from a text file.
savetxt(fname, X[, fmt, delimiter, newline, …])
savetxt
Save an array to a text file.
genfromtxt(fname[, dtype, comments, …])
genfromtxt
Load data from a text file, with missing values handled as specified.
fromregex(file, regexp, dtype[, encoding])
fromregex
Construct an array from a text file, using regular expression parsing.
fromstring(string[, dtype, count, sep, like])
fromstring
A new 1-D array initialized from text data in a string.
ndarray.tofile(fid[, sep, format])
ndarray.tofile
Write array to a file as text or binary (default).
ndarray.tolist()
ndarray.tolist
Return the array as an a.ndim-levels deep nested list of Python scalars.
a.ndim
fromfile(file[, dtype, count, sep, offset, like])
fromfile
Construct an array from data in a text or binary file.
array2string(a[, max_line_width, precision, …])
array2string
Return a string representation of an array.
array_repr(arr[, max_line_width, precision, …])
array_repr
Return the string representation of an array.
array_str(a[, max_line_width, precision, …])
array_str
Return a string representation of the data in an array.
format_float_positional(x[, precision, …])
format_float_positional
Format a floating-point scalar as a decimal string in positional notation.
format_float_scientific(x[, precision, …])
format_float_scientific
Format a floating-point scalar as a decimal string in scientific notation.
memmap
Create a memory-map to an array stored in a binary file on disk.
lib.format.open_memmap(filename[, mode, …])
lib.format.open_memmap
Open a .npy file as a memory-mapped array.
set_printoptions([precision, threshold, …])
set_printoptions
Set printing options.
get_printoptions()
get_printoptions
Return the current print options.
set_string_function(f[, repr])
set_string_function
Set a Python function to be used when pretty printing arrays.
printoptions(*args, **kwargs)
printoptions
Context manager for setting print options.
binary_repr(num[, width])
binary_repr
Return the binary representation of the input number as a string.
base_repr(number[, base, padding])
base_repr
Return a string representation of a number in the given base system.
DataSource([destpath])
DataSource
A generic data source file (file, http, ftp, …).
lib.format
Binary serialization