scipy.sparse
scipy.sparse.dok_matrix.nonzero
scipy.sparse.dok_matrix.popitem
dok_matrix.
pop
If key is not found, d is returned if given, otherwise KeyError is raised