skip to Main Content

Convert json directly into dictionary of pandas dataframes

I have json files which look like a dictionary of a list of similar dictionaries: {"People":[{"FirstName":"Max","Surname":"Smith"},{"FirstName":"Jane","Surname":"Smart"}], "Animals":[{"Breed":"Cat","Name":"WhiteSocks"},{"Breed":"Dog","Name":"Zeus"}]} I'm using the following code to convert this into a dictionary of pandas dataframes: import pandas as pd import json # Read the…

VIEW QUESTION
Back To Top
Search