namedtuple_addcolumn

emlib.misc.namedtuple_addcolumn(namedtuples, seq, column_name, classname='')[source]

Add a column to a sequence of named tuples

Parameters:
  • namedtuples – a list of namedtuples

  • seq – the new column

  • column_name – name of the column

  • classname – nane of the new namedtuple

Returns:

a list of namedtuples with the added column