Input and output#

The following table lists both implemented and not implemented methods. If you have need of an operation that is listed as not implemented, feel free to open an issue on the GitHub repository, or give a thumbs up to already created issues. Contributions are also welcome!

The following table is structured as follows: The first column contains the method name. The second column contains link to a description of corresponding numpy method. The third column is a flag for whether or not there is an implementation in Xorbits for the method in the left column. Y stands for yes, N stands for no, P standsfor partial (meaning some parameters may not be supported yet), and D stands for default to numpy.

NumPy binary files (NPY, NPZ)#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

load

load

Y

save

save

Y

savez

savez

Y

savez_compressed

savez_compressed

Y

The format of these binary file types is documented in xorbits.numpy.lib.format

Text files#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

loadtxt

loadtxt

Y

savetxt

savetxt

Y

genfromtxt

genfromtxt

Y

fromregex

fromregex

Y

fromstring

fromstring

Y

ndarray.tofile

ndarray.tofile

Y

ndarray.tolist

ndarray.tolist

Y

Raw binary files#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

fromfile

fromfile

Y

ndarray.tofile

ndarray.tofile

Y

from_hdf5

Y

to_hdf5

Y

from_zarr

Y

to_zarr

Y

from_tiledb

Y

to_tiledb

Y

String formatting#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

array2string

array2string

Y

array_repr

array_repr

Y

array_str

array_str

Y

format_float_positional

format_float_positional

Y

format_float_scientific

format_float_scientific

Y

Memory mapping files#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

memmap

memmap

Y

lib.format.open_memmap

lib.format.open_memmap

Y

Text formatting options#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

set_printoptions

set_printoptions

Y

get_printoptions

get_printoptions

Y

set_string_function

set_string_function

Y

printoptions

printoptions

Y

Base-n representations#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

binary_repr

binary_repr

Y

base_repr

base_repr

Y

Data sources#

xorbits.numpy

numpy.lib.npyio

Implemented? (Y/N/P/D)

Notes for Current implementation

DataSource

DataSource

Y

In NumPy 2.0, numpy.DataSource was moved to numpy.lib.npyio.DataSource for backward compatibility.

Binary Format Description#

xorbits.numpy

numpy

Implemented? (Y/N/P/D)

Notes for Current implementation

lib.format

lib.format

Y