binsparse.write#

binsparse.write(store, key, x, *, dataset_kwargs=mappingproxy({}))#

Write a sparse matrix to a store.

Parameters
  • store (Group | Group) – A Zarr or h5py group.

  • key (str) – The key to write the matrix to.

  • x (spmatrix) – The matrix to write.

  • dataset_kwargs (Mapping (default: mappingproxy({}))) – Keyword arguments to pass to the dataset creation function.