input-> a b 0 red 0.500 1 yellow 0.250 2 blue 0.125 dict(df.values) output -> {'red': '0.500', 'yellow': '0.250', 'blue': '0.125'}