Splitting dictionary/list inside a Pandas Column and convert as new dataframe
问题 I have data saved in a excel. I am querying this data using Python2.7 and turning it into a Pandas DataFrame. i have a column called category in my dataframe.It has a dictionary (or list?) of values within it. The DataFrame looks like this: [1] df ID CATEGORY 1 {60: 'SHOES'} 2 {46: 'HARDWARE'} 3 {60: 'SHOES'} 4 {219: 'GOVERNMENT OFFICE'} 5 {87: 'ARCADES',60: 'SHOES'} I need to split this column into separate columns so that the DataFrame looks like this: [2] df2 CATEGORY_ID CATEGORY_NAME 60