fromkeys — SciPy v1.15.3 Manual (original) (raw)

scipy.sparse.dok_array.

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

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