I have a dataframe like this.
index column1
e1 {u'c680': 5, u'c681': 1, u'c682': 2, u'c57...
e2 {u'c680': 6, u'c681': 2, u'c682': 1, u'c57...
e3 {u'c680': 2, u'c681': 4, u'c682': 2, u'c57...
e4 {u'c680': 4, u'c681': 2, u'c682': 3, u'c57...
e5 {u'c680': 3, u'c681': 5, u'c683': 3, u'c57...
Now I want to expand the dict in column1 to individual columns like below.
index c680 c681 c682 c683
e1 5 1 2 0
e2 6 2 1 0
e3 2 4 2 0
e4 4 2 3 0
e5 3 5 0 3
Is there a pandas shortcut that can achieve this?