I have a dataframe like as shown below
df = pd.DataFrame({\'person_id\': [11,11,11,11,11,11,11,11,12,12,12], \'time\' :[0,0,0,1,2,3,4,4,0,0