scipy.sparse.dok_matrix.pop#

dok_matrix.pop(k[, d]) v, remove specified key and return the corresponding value.[source]#

If the key is not found, return the default if given; otherwise, raise a KeyError.