#NEWLINE# def add_to_table( rec , columns , column_names ) : #NEWLINE# #INDENT# '\n    Add (append) multiple columns to a records array.\n\n    Parameters\n    ----------\n    rec : recarray\n        Records array (table).\n    columns : list of ndarrays\n        List of columns data to append to table.\n    column_names : list of str\n        List of names of columns.\n\n    Returns\n    -------\n    nrec : recarray\n        Records array with columns added\n\n    ' #NEWLINE# for ( col , col_name ) in zip ( columns , column_names ) : #NEWLINE# #INDENT# rec = table . append_column ( rec , col , name = col_name ) #NEWLINE# #UNINDENT# return rec