pop — SciPy v1.15.3 Manual (original) (raw)

scipy.sparse.dok_array.

dok_array.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.