SciPy

scipy.sparse.coo_matrix.transpose

coo_matrix.transpose(copy=False)[source]