SciPy

scipy.sparse.dok_matrix.getformat

dok_matrix.getformat()[source]

Format of a matrix representation as a string.