concatenate

sparse.concatenate(arrays, axis=0, compressed_axes=None)[source]

Concatenate the input arrays along the given dimension.

Parameters
  • arrays (Iterable[SparseArray]) – The input arrays to concatenate.

  • axis (int, optional) – The axis along which to concatenate the input arrays. The default is zero.

  • compressed_axes (iterable, optional) – The axes to compress if returning a GCXS array.

Returns

The output concatenated array.

Return type

SparseArray

Raises

ValueError – If all elements of arrays don’t have the same fill-value.

See also

numpy.concatenate()

NumPy equivalent function