class_docstr: Refer to TraceFactory.create_table() for docstring
code: def __init__(
      self,
      table_text,
      colorscale,
      font_colors,
      index,
      index_title,
      annotation_offset,
      **kwargs,
  ):
      if pd and isinstance(table_text, pd.DataFrame):
          headers = table_text.columns.tolist()
          table_text_index = table_text.index.tolist()
          table_text = table_text.values.tolist()
          table_text.insert(0, headers)
          if index:
              table_text_index.insert(0, index_title)
              for i in range(len(table_text)):
                  table_text[i].insert(0, table_text_index[i])
      self.table_text = table_text
      self.colorscale = colorscale
      self.font_colors = font_colors
      self.index = index
      self.annotation_offset = annotation_offset
      self.x = range(len(table_text[0]))
      self.y = range(len(table_text))
  
file_path: catboost/contrib/python/plotly/py3/plotly/figure_factory/_table.py
imports: from plotly import exceptions, optional_imports
  from plotly.graph_objs import graph_objs
label_desc: Use image node_id 1 to create a new _Table object from inherited base classes: object with example: obj = _Table(table_text, colorscale, font_colors, index, index_title, annotation_offset)