transpose — SciPy v1.15.2 Manual (original) (raw)
scipy.sparse.csc_matrix.
csc_matrix.transpose(axes=None, copy=False)[source]#
Reverses the dimensions of the sparse array/matrix.
Parameters:
axesNone, optional
This argument is in the signature solely for NumPy compatibility reasons. Do not pass in anything except for the default value.
copybool, optional
Indicates whether or not attributes of self should be copied whenever possible. The degree to which attributes are copied varies depending on the type of sparse array/matrix being used.
Returns:
pself with the dimensions reversed.
Notes
If self is a csr_array or a csc_array, then this will return acsc_array or a csr_array, respectively.