code: def getScalars(self, input):
      
      if input == SENTINEL_VALUE_FOR_MISSING_DATA:
        return numpy.array([None])
      else:
        return numpy.array([self.categoryToIndex.get(input, 0)])
docs: See method description in base.py