class_docstr: Converts features in PandasDataFrame to VW format
  Ref: https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Input-format
docstr: Based on the type of feature, preprocess/sanify these features so that it is in VW format
  Only use raw text, numeric integer, numeric decimals, and category
  Ref: https://github.com/autogluon/autogluon/blob/master/common/src/autogluon/common/features/types.py
  
  :param input_series: A single feature as Pandas Series
  :param raw_feature: Raw feature Type
  :param special_feature: Special Feature Type
  :param feature_name: Column Name of this feature
  :return: Preprocessed Feature as a Pandas Series
code: def __generate_namespace_based_on_ml_type(
      self,
      input_series,
      raw_feature,
      special_feature,
      feature_name=None,
  ):
      """
      Based on the type of feature, preprocess/sanify these features so that it is in VW format
      Only use raw text, numeric integer, numeric decimals, and category
      Ref: https://github.com/autogluon/autogluon/blob/master/common/src/autogluon/common/features/types.py
  
      :param input_series: A single feature as Pandas Series
      :param raw_feature: Raw feature Type
      :param special_feature: Special Feature Type
      :param feature_name: Column Name of this feature
      :return: Preprocessed Feature as a Pandas Series
      """
      if S_TEXT in special_feature:
          return input_series.apply(self.__preprocess_text)
      elif raw_feature in [R_INT, R_FLOAT]:
          return input_series.apply(
              self.__numeric_namespace_generator, args=(feature_name,)
          )
      elif raw_feature == R_CATEGORY:
          return input_series.apply(
              self.__categorical_namespace_generator,
              args=(feature_name,),
          )
      else:
          raise ValueError(
              f"Received unsupported raw_feature_type '{str(raw_feature)}' special_feature_type '{str(special_feature)}'"
              f" for feature '{feature_name}' for class {self.__class__.__name__}."
          )
  
file_path: autogluon/tabular/src/autogluon/tabular/models/vowpalwabbit/vowpalwabbit_utils.py
imports: import pandas
  from autogluon.common.features.types import R_CATEGORY, R_FLOAT, R_INT, S_TEXT
label_desc: Use image node_id 2 for calling the VWFeaturesConverter obj's underlying member method code with example usage: obj.__generate_namespace_based_on_ml_type(input_series, raw_feature, special_feature, feature_name) and returns: input_series, input_series, input_series