I have an array of customer objects generated from a csv file:
Date, Name, Sales
03/01, Alpha, 110
03/23, Alpha, 25
01/02, Beta, 135
and require an efficient way to create a new array of unique customers with median sales and export them back to csv. There could be as many as 500,000 records and 100,000 unique customers!