scipy.sparse.dok_array.

fromkeys#

classmethod dok_array.fromkeys(iterable, value=1, /)[source]#

Create a new dictionary with keys from iterable and values set to value.