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: Check label type.
  
  Raises:
      TypeError: If label is not of type SimpleLabel, MulticlassLabel, Multilabel, ContextualbanditLabel.
docstr_tok: ["Check","label","type",".","Raises",":","TypeError",":","If","label","is","not","of","type","SimpleLabel",",","MulticlassLabel",",","Multilabel",",","ContextualbanditLabel","."]
code: def check_label_type(self):
      """Check label type.
  
      Raises:
          TypeError: If label is not of type SimpleLabel, MulticlassLabel, Multilabel, ContextualbanditLabel.
      """
      available_labels = (
          SimpleLabel,
          MulticlassLabel,
          MultiLabel,
          ContextualbanditLabel,
      )
  
      label = (
          self.label[0]
          if isinstance(self.label, _ListLabel)
          else self.label
      )
  
      if not isinstance(label, available_labels):
          raise TypeError(
              "Argument 'label' should be either of the following type: {label_types}.".format(
                  label_types=repr(
                      [x.__name__ for x in available_labels]
                  )[1:-1]
              )
          )
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 6 for calling the DFtoVW obj's underlying member method code with example usage: obj.check_label_type() without return types