code: def replaceMaskedValue(self, replacementValue):
          
          if self.mask is False:
              pass
          elif self.mask is True:
              self.data[:] = replacementValue
          else:
              self.data[self.mask] = replacementValue
docs: Replaces values where the mask is True with the replacement value.