Applies the given procedure to the named columns of the dataframe and returns the result as a dataframe.