将嵌套字典解包到数据框熊猫

时间:2021-01-11 19:39:56

标签: python-3.x dataframe dictionary nested

我有以下带有嵌套 ID 的 JSON 文件,我想转换为如下所示的 Pandas 数据帧表。

{"1":{"1":{"1":{"1":{"1":1,"2":2},"2":{"1":3,"2 ":4}},"2":{"1":{"1":5,"2":6},"2":{"1":7,"2":8}}}," 2":{"1":{"1":{"1":9,"2":10},"2":{"1":11,"2":12}},"2": {"1":{"1":13,"2":14},"2":{"1":15,"2":16}}}}

enter image description here

0 个答案:

没有答案