SciPy

scipy.sparse.csr_matrix.transpose

csr_matrix.transpose(copy=False)[source]