class_docstr: Convert a pandas DataFrame to a suitable VW format.
  Instances of this class are built with classes such as SimpleLabel,
  MulticlassLabel, Feature or Namespace.
  
  The class also provided a convenience constructor to initialize the class
  based on the target/features column names only.
class_docstr_tok: ["Convert","a","pandas","DataFrame","to","a","suitable","VW","format",".","Instances","of","this","class","are","built","with","classes","such","as","SimpleLabel",",","MulticlassLabel",",","Feature","or","Namespace",".","The","class","also","provided","a","convenience","constructor","to","initialize","the","class","based","on","the","target\/features","column","names","only","."]
docstr: Main method that converts the dataframe to the VW format.
  
  Returns:
      The list of parsed lines in VW format.
docstr_tok: ["Main","method","that","converts","the","dataframe","to","the","VW","format",".","Returns",":","The","list","of","parsed","lines","in","VW","format","."]
code: def convert_df(self) -> List[str]:
      """Main method that converts the dataframe to the VW format.
  
      Returns:
          The list of parsed lines in VW format.
      """
      self.out = self.empty_col()
  
      if not all([x is None for x in [self.label, self.tag]]):
          self.out += self.process_label_and_tag()
  
      for i, namespace in enumerate(self.namespaces):
          to_add = namespace.process() + self.process_features(
              namespace.features
          )
          self.out += (
              (to_add + " ")
              if (i < len(self.namespaces) - 1)
              else to_add
          )
  
      return self.out.to_list()
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 12 for calling the DFtoVW obj's underlying member method code with example usage: obj.convert_df() and returns: self