Is it possible to use the .pow() function or is there a way of doing this without having to iterate through every column? I have to dataframes one of the form: