#NEWLINE# def append_column( rec , col , name = None , format = None ) : #NEWLINE# #INDENT# '\n    Append a column to the end of a records array.\n\n    Parameters\n    ----------\n    rec : recarray\n        Records array.\n    col : array_like\n        Array or similar object which will be converted into the new column.\n    name : str, optional\n        Name of the column. If None col.dtypes.name will be used.\n    format : dtype, optional\n        Data type to convert the new column into before appending. Required if\n        col is not an ndarray.\n\n    Returns\n    -------\n    new_rec : recarray\n        New records array with column appended.\n\n    ' #NEWLINE# N = len ( rec . dtype . descr ) #NEWLINE# return insert_column ( name , N , col , name , format )