class_docstr: The Table setting displays a table of values
class_docstr_tok: ["The","Table","setting","displays","a","table","of","values"]
docstr: Add rows to the table
  
  columns - define the columns for each row of data
  
  data - rows of data to add. Each field in a row is placed
         at the column indicated by "columns"
docstr_tok: ["Add","rows","to","the","table","columns","-","define","the","columns","for","each","row","of","data","data","-","rows","of","data","to","add",".","Each","field","in","a","row","is","placed","at","the","column","indicated","by","``","columns","''"]
code: def add_rows(self, columns, data):
      """Add rows to the table
  
      columns - define the columns for each row of data
  
      data - rows of data to add. Each field in a row is placed
             at the column indicated by "columns"
      """
      indices = [
          columns.index(c) if c in columns else None
          for c in self.column_names
      ]
      for row in data:
          self.data.append(
              [
                  None if index is None else row[index]
                  for index in indices
              ]
          )
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/setting/_table.py
imports: import cellprofiler_core.utilities.legacy
  from ._setting import Setting
label_desc: Use image node_id 3 for calling the Table obj's underlying member method code with example usage: obj.add_rows(columns, data) without return types