BRAND ID FIRST_NAME CITY
6 1167 Sara Sarasota
6 1167 Jeffrey Sarasota
6 1167 Shane Sarasota
8 1167 Paul Lakewood Ranch
6 10931 Carol Grosse Pointe
6 10931 Nick Detroit
8 10931 William Grosse Pointe Farms
6 4935 Debra Lacoochee
6 4935 Mark Zephyr hills
6 4935 Michael Zephyr hills
I have a .csv file look like the above table with customer information that I need to split up in multiple .csv files.
Each file needs to be split up by Brand and ID. In the example above, there would be 2 .csv files where (Brand = 6, ID = 1167) with 3 customer records and (Brand = 8, ID = 1167) with 1 customer record.
I need help with some code that can detect each unique ID because I have like 30 different IDs in my data file.