scipy.sparse.dia_matrix.

scipy.sparse.dia_matrix.T

property dia_matrix.T

Transpose.