def add_to_table(rec, columns, column_names):
    for col, col_name in zip(columns, column_names):
        rec = table.append_column(rec, col, name=col_name)
    return rec
Add (append) multiple columns to a records array.
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/analysis/linesh.py/add_to_table