I have something like this:
{'event1': [2000, 3000, 4000], 'event2': [123, 456]}
but with N keys, not only two like the example
I need to get something like this:
[
{'event1': 2000, 'event2': 123},
{'event1': 2000, 'event2': 456},
{'event1': 3000, 'event2': 123},
{'event1': 3000, 'event2': 456},
{'event1': 4000, 'event2': 123},
{'event1': 4000, 'event2': 456}
]
As you see, the order does not matter and the size of the list is variable for each key. How would you approach this problem?
I tried to decouple values from keys and iterate between the various lists but after that, I can't couple again the single values with their previous keys.