使用pd.json_normalize()将嵌套JSON转换为扁平JSON,然后转换为Pandas Dataframe您输入的record_path错误,应为['Report Details', 'report Accessible']。
"b"], columns=["h","g","i"]),"two": pd.DataFrame([[11, 23, 34],[44,54,64]],index=["a","b"], columns=["h","g","i"])})#panel转jsondf = panel1.to_frame()#pandas中不支持panel直接转成json,需要先转成dataframe,再去转成jsonjson_str = df.to_json(orient="table")#注...
df = pd.DataFrame({ 'type': ['customer','customer','customer','customer','customer','customer','customer','customer','customer','customer','customer','customer','customer','customer','customer'], 'customer_id': ['1-0000001','1-0000001','1-0000001