I have an array of nested dictionary:
data = {"A":"a","B":"b","ID":[{"ii":"ABC","jj":"BCD"},{"ii":"AAC","jj":"FFD"}],"Finish":"yes"}
I used,
res = pd.DataFrame.from_dict(data , orient='index')
But the ID is still returned as list of dictionary.
A B ID Finish
a b [{"ii":"ABC","jj":"BCD"},{"aa":"AAC","bb":"FFD"}] yes
But I want everything to be converted to df. Not sure how to do it. Kindly help.
Expected Output:
A B ID.ii ID.jj Finish
a b ABC BCD yes
a b AAC FFD yes