Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import pandas as pd
- from pandas.io.json import json_normalize
- with open('./NAME_OF_JSON_FILE') as data_raw:
- data = json.load(data_raw)
- df = json_normalize(data, 'items', ['hasPrevious', 'totalItems', 'pages', ..., any top-level keys you want to keep for all elements])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement