Pipeline Utils¶
combine_dicts(*inputs, merge_keys, output_merge_keys=None)
¶
Combines multiple list of dictionaries into a single list of dictionaries on the
specified merge_keys
. If output_merge_keys
are provided, then it will also rename
merge_keys
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inputs |
StepInput
|
list of dictionaries to combine. |
()
|
merge_keys |
List[str]
|
list of keys to merge on. |
required |
output_merge_keys |
Optional[List[str]]
|
list of keys to rename the merge keys to. Defaults to |
None
|
Returns:
Type | Description |
---|---|
StepInput
|
A list of dictionaries where the values of the |
StepInput
|
list and renamed to |