def _weighted_average(self, d):
    '\n        Return the weighted_sum divided by the sum of the values\n        '
    return d._safe_divide(d.weighted_sum(), sum(d.values()))
Return the weighted_sum divided by the sum of the values
def _weighted_average(self, d):
    '\n        \n        '
    return d._safe_divide(d.weighted_sum(), sum(d.values()))