I have a dictionary with many keys where one key matches to a list of values, like so:
data['0'] = [A,B,C,D,E,F]
data['0.044'] = [G,H,I,J,K,L]
data['0.047'] = [M,N,O,P,Q,R]
I want to convert all these key-value pairs into pandas dataframes in a loop, and save all the dataframes in the dictionary, such that by accessing the same key above I can see the associated dataframe.
Desired:
In[1] data['0']
Out[1]:
col
0 A
1 B
3 C
4 D
5 E
6 F
I have tried fiddling around with loops a bunch, even tried using a list instead of dicts, but to not much avail. Any ideas?