title: How can I group rows based on those that have the same value in a column, and then run my code on each subset?
body: <p>I have a csv file which I created through some lines of code that includes the following:</p>
  
  <p>A 'BatchID' column, in the format of DEFGH12-01, specifying which batch each unit is in, and a column of the units and their full ID numbers, 'UnitID', in the format of DEFGH12-01_x01_y01. Each unit (UnitID) falls under a specific batch (and thus the Unit ID number corresponds to the BatchID it is under. </p>
  
  <p>I have a certain algorithm that I have been running on the entire dataset of unit IDs. I want to group the units based on having the same batchID value (as there are many unique units that fall under each batch), and then running the algorithm on each of these subsets of unit batches.</p>
  
  <p>How can I do this?</p>