scipy.sparse.dok_matrix.

scipy.sparse.dok_matrix.T

property dok_matrix.T

Transpose.