class_docstr: Extends QTableWidget with some useful functions for automatic data handling
  and copy / export context menu. Can automatically format and display a variety
  of data types (see :func:`setData() <pyqtgraph.TableWidget.setData>` for more
  information.
docstr: Set the data displayed in the table.
  Allowed formats are:
  
    * numpy arrays
    * numpy record arrays
    * metaarrays
    * list-of-lists  [[1,2,3], [4,5,6]]
    * dict-of-lists  {'x': [1,2,3], 'y': [4,5,6]}
    * list-of-dicts  [{'x': 1, 'y': 4}, {'x': 2, 'y': 5}, ...]
docstr_tok: ["Set","the","data","displayed","in","the","table",".","Allowed","formats","are",":","*","numpy","arrays","*","numpy","record","arrays","*","metaarrays","*","list-of-lists","[","[","1,2,3","]",",","[","4,5,6","]","]","*","dict-of-lists","{","'","x","'",":","[","1,2,3","]",",","'","y","'",":","[","4,5,6","]","}","*","list-of-dicts","[","{","'","x","'",":","1",",","'","y","'",":","4","}",",","{","'","x","'",":","2",",","'","y","'",":","5","}",",","...","]"]
code: def setData(self, data):
      """Set the data displayed in the table.
      Allowed formats are:
  
        * numpy arrays
        * numpy record arrays
        * metaarrays
        * list-of-lists  [[1,2,3], [4,5,6]]
        * dict-of-lists  {'x': [1,2,3], 'y': [4,5,6]}
        * list-of-dicts  [{'x': 1, 'y': 4}, {'x': 2, 'y': 5}, ...]
      """
      self.clear()
      self.appendData(data)
      self.resizeColumnsToContents()
  
imports: import numpy
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 3 for calling the TableWidget obj's underlying member method code with example usage: obj.setData(data) without return types