如何将字典列表值的字典转换为python-DataFram

2024-09-26 04:43:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我的字典举例如下:

{{“Test1”:{“a”:[1],“b”:[2],“c”:[12345],“d”:[7],“e”:[1,2,3,4,5,6,7]}

{“Test2”:{“a”:[2],“b”:[2],“c”:[55555],“d”:[8],“e”:[1,2,3,4,5,6,7,8]}

{“Test3”:{“a”:[3],“b”:[2],“c”:[66665],“d”:[5],“e”:[1,2,3,4,5]}

{“Test1”:{“a”:[1],“b”:[2],“c”:[12345],“d”:[7],“e”:[11,12,13,14,15,16,17]}

{“Test2”:{“a”:[2],“b”:[2],“c”:[55555],“d”:[8],“e”:[1,2,3,4,5,6,7,8]}

{“Test3”:{“a”:[3],“b”:[2],“c”:[66665],“d”:[5],“e”:[1,2,3,4,5]} ... } 大约50000个值是(Test1、Test2、Test3重复唯一值)

我需要dataframetest1,列如下,行值应该从相应的键追加。你知道吗

索引a b c d x y z m n o p

 0         1  2 12345    7    1   2   3     4     5   6    7

 1          1  2 12345   7     11 12 13 14   15 16 17

大约50000行

同样地,我需要其他的数据帧变量.Test2、测试3等。。你知道吗

请帮忙


Tags: 数据字典test1test2举例test3个值行值