SciPy

scipy.sparse.dok_matrix.popitem

dok_matrix.popitem(self, /)

Remove and return a (key, value) pair as a 2-tuple.

Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.

Previous topic

scipy.sparse.dok_matrix.pop

Next topic

scipy.sparse.dok_matrix.power