When functionalizing a dataframe, if there are any non-numerical columns the functionalization breaks