DOK.asformat

DOK.asformat(format)[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.