There is a dataframe like this:
id product day 0 8 22 23 1 8 32 24 2 8 70 23 3 8 141 23 4 8 160 24 ... ... ... ... 210794 71564