I have a data frame with 2 columns, customerID and StockCodes describing stockcodes bought by the customer over a period of time. There could be multiple observation for the sam