scipy.sparse.dok_matrix.

fromkeys#

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

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