My sample dataset looks like as below:
txn_time = pd.DataFrame({\'ID\':[1,1,1,1,1,2,2,3,3], \'Start_Date\':[\'2017-08-25\',\'2017-08-25