class_docstr: Vowpal Wabbit Class
docstr: Predict results
  
  Args:
      df (pandas.DataFrame): input test data
docstr_tok: ["Predict","results","Args",":","df","(","pandas.DataFrame",")",":","input","test","data"]
code: def predict(self, df):
      """Predict results
  
      Args:
          df (pandas.DataFrame): input test data
      """
  
      # write dataframe to disk in vw format
      self.to_vw_file(df=df, train=False)
  
      # generate predictions
      run(self.test_cmd, check=True)
  
      # read predictions
      return df.join(
          pd.read_csv(
              self.prediction_file,
              delim_whitespace=True,
              names=[self.col_prediction],
              index_col=1,
          )
      )
  
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 7 for calling the VW obj's underlying member method code with example usage: obj.predict(df) and returns: df