bff.avg_dicts

bff.avg_dicts(*args)

Average all the values in the given dictionaries.

Dictionaries must only have numerical values. If a key is not present in one of the dictionary, the value is 0.

Parameters

*args – Dictionaries to average, as positional arguments.

Returns

Dictionary with the average of all inputs.

Return type

dict

Raises

TypeError – If a value is not a number.