I have such a list
[9308, '127.05', [{'id': 8568, 'name': 'some product name', 'product_id': 4204, 'variation_id': 0, 'quantity': 1, 'tax_class': '', 'subtotal': '139.00', 'subtotal_tax': '0.00', 'total': '118.15', 'total_tax': '0.00', 'taxes': [], 'meta_data': [], 'sku': '', 'price': 118.15}], 9306, '98.89', [{'id': 8566, 'name': 'some product name', 'product_id': 4200, 'variation_id': 0, 'quantity': 1, 'tax_class': '', 'subtotal': '89.99', 'subtotal_tax': '0.00', 'total': '89.99', 'total_tax': '0.00', 'taxes': [], 'meta_data': [], 'sku': '', 'price': 89.99}]
I'd like to transform it into a data frame that looks like:
ID Total Value Product IDs
9308 127.05 4204
9306 98.89 4200
etc.
also some IDs could have few product ids, so the list should look like:
ID Total Value Product IDs
9308 127.05 4204
9308 127.05 4200
9308 127.05 5555
Can anyone help me? I'm a very beginner in Python.