I have a dictionary in python, each key has a value of nested lists, like following:
test = {'x':[[1,2,3],[4,5,6]], 'y':[[1,2,3],[4,5,6]]}
and I want to convert the dictionary key into dataframe column names in pandas and the nested lists into series of list, like following:
'x' | 'y' |
---|---|
[1,2,3] | [1,2,3] |
[4,5,6] | [4,5,6] |
Is there any way to do so?