code: def __init__(
      self,
      order: int,
      source: pd.Series,
      compare=None,
      source_target=None,
      compare_target=None,
      predetermined_type: FeatureType = None,
      predetermined_type_target: FeatureType = None,
  ):
      self.order = order
  
      # Cleanup names
      source.name = str(source.name)
      if compare is not None:
          compare.name = str(compare.name)
      if source_target is not None:
          source_target.name = str(source_target.name)
      if compare_target is not None:
          compare_target.name = str(compare_target.name)
  
      self.source = source
      self.source_counts = None
      self.source_target = source_target
  
      self.compare = compare
      self.compare_counts = None
      self.compare_target = compare_target
  
      if predetermined_type:
          self.predetermined_type = predetermined_type
      else:
          self.predetermined_type = FeatureType.TYPE_UNKNOWN
  
      # Validate TARGET type
      if predetermined_type_target:
          if predetermined_type_target not in (
              FeatureType.TYPE_BOOL,
              FeatureType.TYPE_NUM,
          ):
              if predetermined_type_target == FeatureType.TYPE_CAT:
                  raise ValueError(
                      "TARGET values can only be of NUMERICAL or BOOLEAN type for now.\n"
                      "CATEGORICAL type was detected; if you meant the target to be\n"
                      "NUMERICAL, use a FeatureConfig(force_num=...) object."
                  )
              else:
                  raise ValueError(
                      "TARGET values can only be of NUMERICAL or BOOLEAN type for now."
                  )
          self.predetermined_type_target = predetermined_type_target
      else:
          self.predetermined_type_target = FeatureType.TYPE_UNKNOWN
  
file_path: sweetviz/sweetviz/sv_types.py
imports: from enum import Enum, unique
  import pandas
label_desc: Use image node_id 1 to create a new FeatureToProcess object  with example: obj = FeatureToProcess(order, source, compare, source_target, compare_target, predetermined_type, predetermined_type_target)