scipy.sparse.dok_matrix.pop#

dok_matrix.pop(key, default=<unrepresentable>, /)#

If key is not found, default is returned if given, otherwise KeyError is raised