I have some csv data from a counting experiment, in which I am given a measurement time and the number of counts between that time and the previous measurement time. For some reason, whenever I have counts (sometimes I have none), that row gets repeated the same number of times as the number of counts. Here is a basic example:
time counts
t1 0
t2 1
t3 0
t4 3
t4 3
t4 3
t5 0
So t4 gets repeated 3 times, because I have 3 counts associated to it and this happens for any number of counts (except for zero, in which case the row appears just once). there are more columns in my case but it is just these 2 that matters. Is there a fast way to remove these redundant rows and have each count appearing only one time i.e.:
time counts
t1 0
t2 1
t3 0
t4 3
t5 0
Thank you!