Input and output

NumPy binary files (NPY, NPZ)

load(file[, mmap_mode, allow_pickle])

Loads arrays or pickled objects from .npy, .npz or pickled file.

save(file, arr[, allow_pickle])

Saves an array to a binary file in .npy format.

savez(file, *args, **kwds)

Saves one or more arrays into a file in uncompressed .npz format.

savez_compressed(file, *args, **kwds)

Saves one or more arrays into a file in compressed .npz format.

String formatting

array_repr(arr[, max_line_width, precision, …])

Returns the string representation of an array.

array_str(arr[, max_line_width, precision, …])

Returns the string representation of the content of an array.

Base-n representations

binary_repr(num[, width])

Return the binary representation of the input number as a string.

base_repr(number[, base, padding])

Return a string representation of a number in the given base system.