Input and output

NPZ files

load
save
savez

Text files

loadtxt
savetxt
genfromtxt
fromregex
fromstring
ndarray.tofile(fid[, sep, format]) Write array to a file as text or binary (default).
ndarray.tolist() Return the array as a (possibly nested) list.

Raw binary files

fromfile
ndarray.tofile(fid[, sep, format]) Write array to a file as text or binary (default).

String formatting

array_repr
array_str

Memory mapping files

memmap Create a memory-map to an array stored in a binary file on disk.

Text formatting options

set_printoptions
get_printoptions
set_string_function

Base-n representations

binary_repr
base_repr

Data sources

DataSource([destpath]) A generic data source file (file, http, ftp, ...).

Table Of Contents

Previous topic

numpy.mintypecode

Next topic

numpy.load

This Page