I am using for loop to produce my results and I am using dataframe to append my results from array, but I am receiving the error "cannot concatenate object of type