I have a dictionary in this format.
{'column1': {'id': 'object'},
'column2': {'mark': 'int64'},
'column3': {'name': 'object'},
'column4': {'distance': 'float64'}}
I want this to convert in the format:
{'id': 'object',
'mark': 'int64',
'name': 'object',
'distance': 'float64'}
i.e values of the dictonary in another flattened dictionary.
I tried using :
L= []
for i in d.values():
L.append(str(i))
dict(L)
But its not working.