code: def addcolumn(table, field, col, index=None, missing=None):
      
  
      return AddColumnView(table, field, col, index=index, missing=missing)
docs: Add a column of data to the table. E.g.::
  
          >>> import petl as etl
          >>> table1 = [['foo', 'bar'],
          ...           ['A', 1],
          ...           ['B', 2]]
          >>> col = [True, False]
          >>> table2 = etl.addcolumn(table1, 'baz', col)
          >>> table2
          +-----+-----+-------+
          | foo | bar | baz   |
          +=====+=====+=======+
          | 'A' |   1 | True  |
          +-----+-----+-------+
          | 'B' |   2 | False |
          +-----+-----+-------+
  
      Use the `index` parameter to control the position of the new column.