

def Remove(self, row):
    'Removes a row from the table.\n\n    Args:\n      row: int, the row number to delete. Must be >= 1, as the header\n        cannot be removed.\n\n    Raises:\n      TableError: Attempt to remove nonexistent or header row.\n    '
    if ((row == 0) or (row > self.size)):
        raise TableError('Attempt to remove header row')
    new_table = []
    for t_row in self._table:
        if (t_row.row != row):
            new_table.append(t_row)
            if (t_row.row > row):
                t_row.row -= 1
    self._table = new_table

dataset/ETHPy150Open google/textfsm/texttable.py TextTable.Remove/original