SciPy
dok_array.setdefault
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
previous
scipy.sparse.dok_array.set_shape
next
scipy.sparse.dok_array.setdiag