I have a dataframe df with products like this :
df
ID DATE TYPE Client_ID 1 2015-01-15 A johndoe 2 2009-01-15