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
PARAMETER | DESCRIPTION |
---|---|
*args
|
Dicts to merge with the first one the base
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Any
|
The merged data |