scipy.sparse.dok_matrix. keys# dok_matrix.keys()[source]# Return a set-like object providing a view on the dictâs keys. Returns: dict_keysA view object displaying a list of all the keys in the dictionary.