I have a huge dataset. What I am trying to do is separate unique names and calculate the genetic algorithm of data with the same name. to illustrate
Assume the following table
Name price quantity
a1. 100. 6
a2. 30. 20
a1 250. 125
a1. 5. 20
a2. 90. 200
a2. 50. 705
so I want to calculate the genetic algorithm of a1 and a2 separately to get the best solution for x1-x3. I have already coded the genetic algorithm for the whole dataset, but I am confused about how to calculate a1 and a2 separately within the same dataset.
Note: I have used pandas to import my dataset