def _SetTable(self, table):
    if not isinstance(table, TextTable):
      raise TypeError('Not an instance of TextTable.')
    self.Reset()
    self._table = copy.deepcopy(table._table)   # pylint: disable=W0212
    # Point parent table of each row back ourselves.
    for row in self:
      row.table = self
Sets table, with column headers and separators.
dataset/ETHPy150Open google/textfsm/texttable.py/TextTable._SetTable