Convert dictionary into dataframe columns using key and value

Viewed 12

Info column contains dictionaries of football player info. enter image description here

I want to convert this dictionary into the same dataframe columns using key,value pair. This is the code:

for key,value in df.Info[0].items():
    df[key]=value
df.drop('Info',axis=1)

The code outputs this: enter image description here Values are the same for each row. How can I do it properly?

0 Answers
Related