I have a data frame like following
id, values
1, {'foo':2 , 'bar':2}
2, {'baz':20}
and so on
I want to transform this dataframe into
id val1 val2
1 foo 2
1 bar 2
2 baz 20
and so on.. I dont want to like iterate each row in dataframe.. as I am pretty sure there is a way in pandas to do the above?