code: def update(self, instance, oldValue, newValue, subKey):
      
      histogram = self.__get__(instance, None)
      histogram[subKey] += newValue - oldValue
docs: Updates the aggregate based on a change in the child value.