如何在DataFrame中将嵌套字典键作为子标题

我通过Pandas从API获得了一个DataFrame,并且某些字段由嵌套字典组成。如何将这些字典的键定义为数据框的子菜单

enter image description here

ideally, it would be looks like this enter image description here

评论