scipy.sparse.dok_matrix. mT# property dok_matrix.mT# Matrix transpose. See also scipy.sparse.matrix_transposeequivalent function