hey guys I have a list of dictionaries that have timestamps which I want to separate by minute in each iteration.

So currently my dictionary looks like this :

```
{
    "taco.tuesday": [
        {
            "timestamp": "2021-02-11 02:18:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:19:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:20:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:21:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:22:00-05:00",
            "cost": 0
        }
    ],
    "macoroni.mondays": [
        {
            "timestamp": "2021-02-11 02:18:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:19:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:20:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:21:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:22:00-05:00",
            "cost": 0
        }
    ],
    "salmon.sundays": [
        {
            "timestamp": "2021-02-11 02:18:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:19:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:20:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:21:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:22:00-05:00",
            "cost": 0
        }
    ],
    "whatever.wednesday": [
        {
            "timestamp": "2021-02-11 02:18:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:19:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:20:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:21:00-05:00",
            "cost": 0
        },
        {
            "timestamp": "2021-02-11 02:22:00-05:00",
            "cost": 0
        }
    ]
}

```

But what I want is my results to look like this for each minute :

```
[{
    "taco.tuesday": {
        "timestamp": "2021-02-11 01:38:00-05:00",
        "cost": 0
    },
    "macoroni.mondays": {
        "timestamp": "2021-02-11 01:38:00-05:00",
        "cost": 0
    },
    "salmon.sundays": {
        "timestamp": "2021-02-11 01:38:00-05:00",
        "cost": 0
    },
    "whatever.wednesday": {
        "timestamp": "2021-02-11 01:38:00-05:00",
        "cost": 0
    }
}],

[{
    "taco.tuesday": {
        "timestamp": "2021-02-11 01:39:00-05:00",
        "cost": 0
    },
    "macoroni.mondays": {
        "timestamp": "2021-02-11 01:39:00-05:00",
        "cost": 0
    },
    "salmon.sundays": {
        "timestamp": "2021-02-11 01:39:00-05:00",
        "cost": 0
    },
    "whatever.wednesday": {
        "timestamp": "2021-02-11 01:39:00-05:00",
        "cost": 0
    }
}],

[{
    "taco.tuesday": {
        "timestamp": "2021-02-11 01:40:00-05:00",
        "cost": 0
    },
    "macoroni.mondays": {
        "timestamp": "2021-02-11 01:40:00-05:00",
        "cost": 0
    },
    "salmon.sundays": {
        "timestamp": "2021-02-11 01:40:00-05:00",
        "cost": 0
    },
    "whatever.wednesday": {
        "timestamp": "2021-02-11 01:40:00-05:00",
        "cost": 0
    }
}]

```

here is what I have done so far to get the results I wanted:

```
e = defaultdict(dict)
for i in range(len(ts_results)):
    for key, value in tables.items():
        e[key]['timesamp'] = str(ts_results[i])
        e[key]['cost'] = 0

```

what is the best way of achieving this solution?