I have a huge CSV file which I have read each row and compared against a database table using hash of each row, now I would want to extract certain rows depending on id value from the csv file again. I cannot save the rows initially as I have around 20 columns and and > 500k rows. Thus would there exist a lookup function by column value?

```
 id price year comments
 1   23.5  2014  XYZ
 2   25    2016  XYZ
 3   22.5  2014  XYZ

```