I'm going through a hard time trying to transform a dataframe with 2 columns into another DataFrame. The first column is my index (ints) and the another column is a complicated series. For what i'm able to see the structure of the series goes like this:
A dictionary with one key and one value. The value is a list of simple dictionaries with key/value pairs.
My DataFrame looks like that:
Series:
{
"CashFlowDto": [
{
"TicketId": None,
"Type": "Amrt",
"Amount": 560.61,
"PercentualAmount": 0.0494481,
"MaturityDate": datetime.datetime(2023, 7, 10, 0, 0),
"PaymentDate": datetime.datetime(2023, 7, 10, 0, 0),
},
{
"TicketId": None,
"Type": "Amrt",
"Amount": 552.05,
"PercentualAmount": 0.048693,
"MaturityDate": datetime.datetime(2023, 8, 10, 0, 0),
"PaymentDate": datetime.datetime(2023, 8, 10, 0, 0),
}
]}
My desired output:
Could you guys help me, please?
Thanks