nip.utils.data.dict_update_add#
- nip.utils.data.dict_update_add(dictionary: dict, key: Any, value: Number) dict[source]#
- Update a dictionary by adding a value to a key. - If the key is not in the dictionary, it will be updated with the given value. - Parameters:
- dictionary (dict) – The dictionary to update. 
- key (Any) – The key to update. 
- value (Number) – The value to add to the key.