SciPy

scipy.sparse.dia_matrix.todok

dia_matrix.todok()[source]