data_merge
Tools for merging data.
FUNCTION | DESCRIPTION |
---|---|
comprehensive_merge |
Merges data comprehensively. |
deep_merge |
Merges dicts deeply. |
merge_iterables |
Merge and de-duplicate a bunch of lists into a single list. |
Functions¶
comprehensive_merge
¶
Merges data comprehensively.
All arguments must be of the same type.
- Scalars are overwritten by the new values
- lists are merged and de-duplicated
- dicts are recursively merged
RETURNS | DESCRIPTION |
---|---|
Any
|
The merged data |
deep_merge
¶
Merges dicts deeply.
Pass the dictionaries to merge as parameters to the function.
RETURNS | DESCRIPTION |
---|---|
dict
|
The merged dict
TYPE:
|