0

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?

beridzeg45
  • 246
  • 2
  • 11

0 Answers0