我dict喜欢这样的:
dict
data = {'1':{'a':10, 'b':30}, '2':{'a':20, 'b':60}}
我想转换成这样的数据帧:
x y z 1 a 10 1 b 30 2 a 20 2 b 60
有人知道吗?
python dictionary dataframe python-3.x pandas
dataframe ×1
dictionary ×1
pandas ×1
python ×1
python-3.x ×1