I spent some time looking through SO and it looks like I have a unique problem.
I have a dictionary that looks like this:
dict={ 123: [2,4], 234: [6,8], ... }
I want to convert this dictionary, which has lists for values ββinto a data frame of three columns, as shown below:
time, value1, value2 123, 2, 4 234, 6, 8 ...
I can run:
pandas.DataFrame(dict)
but this begets the following:
123, 234, ... 2, 6, ... 4, 8, ...
Perhaps a simple fix, but I'm still collecting pandas
python dictionary list pandas dataframe
stoves
source share