I have a dictionary with thousand keys something as follows:
my_dictionary:
{'key1':[['ft1',[2,4,12,2]],['ft2',[0,3,3,1]],'key2':[['ft1',[5,0,2,9]],['ft2',[10,39,3,2]]}
Now, I want to convert this dictionary into a dataframe, where the keys should be a specific column, and the features (ft1, ft2, ..) and their values converted to different column as well. So my desired dataframe should be like this:
my_new_dataframe:
ID, ft1_sig,ft1_med,ft1_les,ft1_non,ft2_sig,ft2_med,ft2_les,ft2_non,...
key1 2 4 12 2 0 3 3. 1
key2 5. 0. 2. 9. 10. 39 3. 2
...
keyn. .. .. .. ..
