How do I combine records


I have a csv file of acuity appointments, though the “appointments” are actually classes each day is a different appointment code in other words, Jane Smith signs up for a 3-day class so there are three records, I only need one record. How do I combine these records?