I have the following Python 3.7 code to extract order data from the Shopify Admin API in json format and format into a pandas dataframe.
r = requests.get('https://%s:%s@%s.myshopify.com/admin/api/2021-01/orders.json?status=any' % (API_KEY, PASSWORD, SHOP_NAME))
d1 = r.json()
df = pd.json_normalize(d1)
print(df)
Currently, my output looks the below:

However, my desired output looks like this:

For reference, d1 looks like the following:
{'orders': [{'id': 30001, 'email': 'test@gmail.com', 'closed_at': None,...
Should I be using a function other than json.normalize() to achieve my desired output? I've also tried using json.dumps() to format between dictionary vs. string but I haven't had any success there.