def _isCategory(fieldType):
 if (fieldType == 'string'):
  return True
 if ((fieldType == 'int') or (fieldType == 'float')):
  return False

def _isCategory ( fieldType ) : if ( fieldType == 'string' ) : return True if ( ( fieldType == 'int' ) or ( fieldType == 'float' ) ) : return False
prediction function for determining whether a function is a categorical variable or a scalar variable .