removing duplicate code

removing duplicate code that assigned he residuals values to a variable in the dataframe