Loading JSON, Flat and Nested

pd.read_json loads a JSON list of records into a DataFrame, lines=True reads JSON Lines with one record on each line, and pd.json_normalize with record_path and meta turns a nested list, such as each vendor's reviews, into one row for each item.

By

Updated

Cheat sheet: Loading JSON, Flat and Nested
Category
Data Analysis
Level
Apprentice
Tags
JSON, JSON Lines, json Module, json_normalize(), python, read_json()