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

Filtering a section in json data using Python

Need assistance only pulling / filtering "results" from json data as shown below [ { "reportSection": "Report Detail", "reportSections": [ "Report Header", "Report Detail" ], "stats": { "returnedRows": 22, "userAllowedRows": 100000, "totalRows": 22 }, "results": [ { "report_date": "05/31/2023", "report_begin_date":…

VIEW QUESTION
Back To Top
Search