class_docstr: The Table setting displays a table of values
class_docstr_tok: ["The","Table","setting","displays","a","table","of","values"]
docstr: Get the column values for a given row or rows
  
  row_index - can either be the index of one row or can be a slice or list
              of rows
  
  columns - the names of the columns to fetch, in the order they will
            appear in the row
docstr_tok: ["Get","the","column","values","for","a","given","row","or","rows","row_index","-","can","either","be","the","index","of","one","row","or","can","be","a","slice","or","list","of","rows","columns","-","the","names","of","the","columns","to","fetch",",","in","the","order","they","will","appear","in","the","row"]
code: def get_data(self, row_index, columns):
      """Get the column values for a given row or rows
  
      row_index - can either be the index of one row or can be a slice or list
                  of rows
  
      columns - the names of the columns to fetch, in the order they will
                appear in the row
      """
      column_indices = [self.column_names.index(c) for c in columns]
      if isinstance(row_index, int):
          row_index = slice(row_index, row_index + 1)
      return [
          [row[ci] for ci in column_indices]
          for row in self.data[row_index]
      ]
  
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 7 for calling the Table obj's underlying member method code with example usage: obj.get_data(row_index, columns) and returns: unknown