I have following list of dictionaries
[
{"Control":"[check11] Enable MFA", "Message":"account x1"},
{"Control":"[check11] Enable MFA", "Message":"account x2"},
{"Control":"[check12] Rotate keys", "Message":"account x1"},
{"Control":"[check12] Rotate keys", "Message":"account x2"}
]
I'd like to get unique values for "Control" and all of the control "Message", so it would look something like this
[
["[check11] Enable MFA", "account x1", "account x2"],
["[check12] Rotate keys", "account x1", "account x2"]
]
If someone has any idea on how to make it work, I'd really appreciate the hint.