I have a list like this one below. The list is a flatten version of the nested JSON file
array([{'content_ID_994': 'BXXXXXXXXX',
'content_ID_995': 'BYYYYYYYYY',
'content_ID_996': 'BZZZZZZZZZ',
'content_ID_997': 'BAAAAAAAAA',
'content_ID_998': 'BBBBBBBBBB',
'content_ID_999': 'BCCCCCCCCC',
'column A': 'value1',
'column B': 'value2',
'module_1_gallery': 'N1',
'module_1_composite': 'F1',
'module_1_collection': 'P1',
'module_2_gallery': 'N2',
'module_2_composite': 'F2',
'module_2_collection': 'P2'}],
dtype=object)
I want the array to be converted to a table so I can write it to a Database. The table structure is below
ID Column A Column B Modules Gallery Composite Collection
BXXXXXXXXX value1 value2 1 N1 F1 P1
BXXXXXXXXX value1 value2 2 N2 F2 P2
How do I process my input to get the desired table structure? Any inputs would be of great help