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: Specify the default text formatting for the entire table, or for a
  single column if *column* is specified.
  
  If a string is specified, it is used as a format string for converting
  float values (and all other types are converted using str). If a 
  function is specified, it will be called with the item as its only
  argument and must return a string. Setting format = None causes the 
  default formatter to be used instead.
  
  Added in version 0.9.9.
docstr_tok: ["Specify","the","default","text","formatting","for","the","entire","table",",","or","for","a","single","column","if","*","column","*","is","specified",".","If","a","string","is","specified",",","it","is","used","as","a","format","string","for","converting","float","values","(","and","all","other","types","are","converted","using","str",")",".","If","a","function","is","specified",",","it","will","be","called","with","the","item","as","its","only","argument","and","must","return","a","string",".","Setting","format","=","None","causes","the","default","formatter","to","be","used","instead",".","Added","in","version","0.9.9","."]
code: def setFormat(self, format, column=None):
      """
      Specify the default text formatting for the entire table, or for a
      single column if *column* is specified.
  
      If a string is specified, it is used as a format string for converting
      float values (and all other types are converted using str). If a
      function is specified, it will be called with the item as its only
      argument and must return a string. Setting format = None causes the
      default formatter to be used instead.
  
      Added in version 0.9.9.
  
      """
      if (
          format is not None
          and not isinstance(format, str)
          and not callable(format)
      ):
          raise ValueError(
              "Format argument must string, callable, or None. (got %s)"
              % format
          )
  
      self._formats[column] = format
  
      if column is None:
          # update format of all items that do not have a column format
          # specified
          for c in range(self.columnCount()):
              if self._formats.get(c, None) is None:
                  for r in range(self.rowCount()):
                      item = self.item(r, c)
                      if item is None:
                          continue
                      item.setFormat(format)
      else:
          # set all items in the column to use this format, or the default
          # table format if None was specified.
          if format is None:
              format = self._formats[None]
          for r in range(self.rowCount()):
              item = self.item(r, column)
              if item is None:
                  continue
              item.setFormat(format)
  
imports: import numpy
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 6 for calling the TableWidget obj's underlying member method code with example usage: obj.setFormat(format, column) without return types