class_docstr: Logs attack results to a CSV.
class_docstr_tok: ["Logs","attack","results","to","a","CSV","."]
code: def __init__(self, filename="results.csv", color_method="file"):
      logger.info(f"Logging to CSV at path {filename}")
      self.filename = filename
      self.color_method = color_method
      self.row_list = []
      self._flushed = True
      self.df = pd.DataFrame()
  
file_path: TextAttack/textattack/loggers/csv_logger.py
imports: import csv
  import pandas
  from textattack.shared import AttackedText, logger
  from .logger import Logger
label_desc: Use image node_id 1 to create a new CSVLogger object from inherited base classes: Logger with example: obj = CSVLogger(filename, color_method)