I have a dataframe with multiple transactions of each customer
ID Date of visit
123 08/09/2013
123 01/02/2014
123 08/08/2014
123 12/03/2017
abd 01/09/2016
I want to aggregate the record in such a way that my dataframe looks like
ID First visit Second visit Third visit
123 08/09/2013 01/02/2014 08/08/2014
Is it possible do like this? I have one million records wit 30,000 customer. How do I approach the problem