I have a csv file say like this:
ID Name TNumber
123 John 123456
123 Joe 789012
124 Tim 896578
124 Tom 403796
I would like to split it into 2 separate csv files based on the ID column.
I am using fast-csv to parse and other modifications on the csv. I need to split the file into two (in the above case) and then do the other operations. How can I achieve this?