class_docstr: A table of cells.
  
  The table consists of a grid of cells, which are indexed by (row, column).
  
  For a simple table, you'll have a full grid of cells with indices from
  (0, 0) to (num_rows-1, num_cols-1), in which the cell (0, 0) is positioned
  at the top left. However, you can also add cells with negative indices.
  You don't have to add a cell to every grid position, so you can create
  tables that have holes.
  
  *Note*: You'll usually not create an empty table from scratch. Instead use
  `~matplotlib.table.table` to create a table from data.
class_docstr_tok: ["A","table","of","cells",".","The","table","consists","of","a","grid","of","cells",",","which","are","indexed","by","(","row",",","column",")",".","For","a","simple","table",",","you","'ll","have","a","full","grid","of","cells","with","indices","from","(","0",",","0",")","to","(","num_rows-1",",","num_cols-1",")",",","in","which","the","cell","(","0",",","0",")","is","positioned","at","the","top","left",".","However",",","you","can","also","add","cells","with","negative","indices",".","You","do","n't","have","to","add","a","cell","to","every","grid","position",",","so","you","can","create","tables","that","have","holes",".","*","Note","*",":","You","'ll","usually","not","create","an","empty","table","from","scratch",".","Instead","use","`","~matplotlib.table.table","`","to","create","a","table","from","data","."]
docstr: Automatically set the widths of given columns to optimal sizes.
  
  Parameters
  ----------
  col : int or sequence of ints
      The indices of the columns to auto-scale.
docstr_tok: ["Automatically","set","the","widths","of","given","columns","to","optimal","sizes",".","Parameters","--","--","--","--","--","col",":","int","or","sequence","of","ints","The","indices","of","the","columns","to","auto-scale","."]
code: def auto_set_column_width(self, col):
      """
      Automatically set the widths of given columns to optimal sizes.
  
      Parameters
      ----------
      col : int or sequence of ints
          The indices of the columns to auto-scale.
      """
      col1d = np.atleast_1d(col)
      if not np.issubdtype(col1d.dtype, np.integer):
          _api.warn_deprecated(
              "3.8",
              name="col",
              message="%(name)r must be an int or sequence of ints. "
              "Passing other types is deprecated since %(since)s "
              "and will be removed %(removal)s.",
          )
          return
      for cell in col1d:
          self._autoColumns.append(cell)
  
      self.stale = True
  
imports: import numpy
  from .None import _api, _docstring
  from .artist import Artist, allow_rasterization
  from .patches import Rectangle
  from .text import Text
  from .transforms import Bbox
  from .path import Path
label_desc: Use image node_id 14 for calling the Table obj's underlying member method code with example usage: obj.auto_set_column_width(col) without return types