scipy.sparse.csc_array.

asformat#

csc_array.asformat(format, copy=False)[source]#

Return this array/matrix in the passed format.

Parameters:
format{str, None}

The desired sparse format (β€œcsr”, β€œcsc”, β€œlil”, β€œdok”, β€œarray”, …) or None for no conversion.

copybool, optional

If True, the result is guaranteed to not share data with self.

Returns:
AThis array/matrix in the passed format.