I'm working on a quite simple thing : requesting something to a database, this one is returning me an [huge] dictionary. It's ok, I love dictionnaries. But i'm not a pro with this thing in Python.
My problem is that I want to convert this dictionary into a DataFrame. It's ok, I googled it and it works. But in my dictionary, I have others dictionaries (yeah I know...).
I want to take from those dictionaries (which are into my dataframe) the values of the "value" key
Here's a sample and what I tried. Thank's in advance.
[[res is my huge dictionary, the result from the query]]
res :
{'head': {'vars': ['id', 'marque', 'modele']},
'results': {'bindings': [{'id': {'type': 'literal', 'value': '1362'},
'marque': {'type': 'literal', 'value': 'PEUGEOT'},
'modele': {'type': 'literal', 'value': '206'}},....
pd.DataFrame(res['results']['bindings'],columns=res['head']['vars']) :

As you can see, there's another dictionary into my dataframe ! What I want is to take the values from the "value" key, in an efficient way (indeed, I know how to do that with a big for statement but please, not in python).
I tried the things like res['results']['bindings']['values'], or res['results']['bindings'].values() (or .values), and others things on the dataframe like df.values()['value'] = df.values() but it doesn't work.