hpcflow.sdk.core.utils.group_by_dict_key_values#
- hpcflow.sdk.core.utils.group_by_dict_key_values(lst, *keys)#
Group a list of dicts according to specified equivalent key-values.
- Parameters:
- Returns:
grouped
- Return type:
Examples
>>> group_by_dict_key_values([{'a': 1}, {'a': 2}, {'a': 1}], 'a') [[{'a': 1}, {'a': 1}], [{'a': 2}]]