I have the dataframe that looks like below: There is no column like seqnum . But I need to add that column which puts sequence of the entry for a particular serial no., date and time. It resets for every day. So, for every serial no., and for day one, I need to keep track of times and add 1, 2, 3, ... and then pick another date for the same serial no. and do the same. I need to do it for all the serial numbers. I have no idea, how to acheive this. Please help. Thanks,
serial DATE TIME Seqnum
12534576936 9/15/2011 7:19:00 1
12534576936 9/15/2011 7:21:00 2
12534576936 7/21/2011 7:58:00 1
12534576936 7/21/2011 8:02:00 2
12534576936 7/21/2011 6:58:00 3
12534576936 7/21/2011 7:58:00 4
12534653735 9/6/2011 6:39:00 1
12534709569 8/23/2011 7:20:00 1