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 if the features argument is of type Feature.
  
  Args:
      features: (list of) Feature. The features argument to check.
  
  Raises:
      TypeError: If the features is not a Feature of a list of Feature.
docstr_tok: ["Check","if","the","features","argument","is","of","type","Feature",".","Args",":","features",":","(","list","of",")","Feature",".","The","features","argument","to","check",".","Raises",":","TypeError",":","If","the","features","is","not","a","Feature","of","a","list","of","Feature","."]
code: def check_features_type(
      self, features: Union[Feature, List[Feature]]
  ):
      """Check if the features argument is of type Feature.
  
      Args:
          features: (list of) Feature. The features argument to check.
  
      Raises:
          TypeError: If the features is not a Feature of a list of Feature.
      """
      if isinstance(features, list):
          valid_feature = all(
              [isinstance(feature, Feature) for feature in features]
          )
      else:
          valid_feature = isinstance(features, Feature)
      if not valid_feature:
          raise TypeError(
              "Argument 'features' should be a Feature or a list of Feature."
          )
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 4 for calling the DFtoVW obj's underlying member method code with example usage: obj.check_features_type(features) without return types