>>> np.array(list(d.values())).astype(float) array([ 2., 4.])
>>> np.array(d.values()) array(dict_values([2, 4]), dtype=object)