scipy.sparse.dok_matrix.keys

dok_matrix.keys() → list of D's keys