You have two options. You can either aggregate all rows and pass them all together or you can loop through each and process them one by one. It really depends on what you want to do.
If you want to do a summary of the content of the spreadsheet, or analysis you should aggregate and process at once.
If you want to perform an action (i.e. send email) for each row you should use the loop.