my_dict = {k:v for k, v in sorted_freq} # sorted_freq is a list containing key:value.
{'like': 4870,
'taste': 4508,
'good': 3569,
'flavor': 3449,
'one': 3217,
'product': 3197,
'use': 3165,
'love': 3141,
'great': 3056,
'eat': 1614...}
How do I replace the Key in this dictionary by natural numbers starting from 1 for all the Keys in dictionary?
[('like', 4870),
('tast', 4508),
('good', 3569),
('flavor', 3449),
('one', 3217),
('product', 3197),
('use', 3165),
('love', 3141),
('great', 3056),
'get', 2400)...]