class_docstr: Vowpal Wabbit Class
docstr: Train model
  
  Args:
      df (pandas.DataFrame): input training data
docstr_tok: ["Train","model","Args",":","df","(","pandas.DataFrame",")",":","input","training","data"]
code: def fit(self, df):
      """Train model
  
      Args:
          df (pandas.DataFrame): input training data
      """
  
      # write dataframe to disk in vw format
      self.to_vw_file(df=df)
  
      # train model
      run(self.train_cmd, check=True)
  
file_path: recommenders/recommenders/models/vowpal_wabbit/vw.py
imports: import os
  from subprocess import run
  from tempfile import TemporaryDirectory
  import pandas
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL, DEFAULT_PREDICTION_COL
label_desc: Use image node_id 6 for calling the VW obj's underlying member method code with example usage: obj.fit(df) without return types