Python 基于数据帧中的列从JSON中提取数据

Python 基于数据帧中的列从JSON中提取数据,python,json,pandas,Python,Json,Pandas,您好,我有一个数据框,其中有一列名为“letter_key”,我知道这些键存在于JSON(letters.JSON)文件中,如何提取这些数据?到目前为止,我的代码是这样的 import pandas as pd import json index = pd.DataFrame(pd.read_csv('index.csv')) places = pd.DataFrame(pd.read_csv('places.csv')) combined_2 = pd.merge(places,index,

您好,我有一个数据框,其中有一列名为“letter_key”,我知道这些键存在于JSON(letters.JSON)文件中,如何提取这些数据?到目前为止,我的代码是这样的

import pandas as pd 
import json
index = pd.DataFrame(pd.read_csv('index.csv'))
places = pd.DataFrame(pd.read_csv('places.csv'))
combined_2 = pd.merge(places,index, how = 'outer', on='place')
combined_2 = combined_2[combined_2['country']=='Turkey']
with open ('letters.json') as f:
    letters = json.load(f)

加载JSON数据后,JSON数据是什么样子的?