-2

I have imported a JSON file with 10000 rows and saved it in the variable data. I want a table that shows the name of the father, the mother, the living situation and the number of pets. For this, I wanted to use a DataFrame from pandas (python). Unfortunately, I don't know how to extract the data. I always get a Family column with {...} entries.

df = pd.DataFrame.from_dict(data)

enter image description here

enter image description here

Sunderam Dubey
  • 1
  • 11
  • 20
  • 40

1 Answers1

1
pd.DataFrame.from_dict(data['Family'])
BloomShell
  • 833
  • 1
  • 5
  • 20