COO.asformat

COO.asformat(format, compressed_axes=None)[source]

Convert this sparse array to a given format.

Parameters

format (str) – A format string.

Returns

out – The converted array.

Return type

SparseArray

Raises

NotImplementedError – If the format isn’t supported.