I had a list with several elements (0,1,2,3,...)
Now I have a dict with above unique elements as keys, their counts as values:
{0:1, 1:3, 2:4, 3:6}
And I want to reconstruct it back to a list
[0, 1,1,1, 2,2,2,2, 3,3,3,3,3,3]
Is there any pythonic way the achieve this? vanilla or with numpy.