I want to extract unique data from nested list includes dicts, see below. Is there any efficient way to generate a new uniq list
[
[{'port': 18, 'module': 1, 'policy_group': 'policy_group1'}]
[{'port': 10, 'module': 1, 'policy_group': 'policy_group2'}]
[{'port': 10, 'module': 1, 'policy_group': 'policy_group2'}]
]
The new list should be
[
[{'port': 18, 'module': 1, 'policy_group': 'policy_group1'}]
[{'port': 10, 'module': 1, 'policy_group': 'policy_group2'}]
]