I am struggling to create an effective function in Python to populate a new column (i.e. factor (t+1)) with factor for the same id_policy but increase t by 1 each time. Can