adds a useful function to append columns to dataframes