I have the text file which contains 3 columns, first column having strings, second column having integers and 3rd column having floating points like this:
steve 134 0.000010
Harry 133 0.000012
joanne 134 0.000022
steve 135 0.000024
joanne 133 0.000045
steve 133 0.000078
joanne 133 0.000079
joanne 133 0.000081
joanne 136 0.000083
steve 134 0.000085
steve 135 0.000087
I want output which looks like this:
steve 134(count=2,Time interval=0.000085-0.000010),133(count=1,Time interval=0.000078-0.000000),135(count=2,Time interval=0.000087-0.000024),136(count=0, Time interval=0.000000-0.000000)
harry 134(count=0, Time interval),133(count=1, Time interval),135(count=0, Time interval),136(count=0, Time interval)
joanne 134(count=1, Time interval),133(count=3, Time interval),135(count=0, Time interval),136(count=1, Time interval)
[Time intervals of harry and joanne is calculated in the same way as that of steve].
Basically, if i take steve, i have to calculate how many entries of 133,134,135,136 each steve has and in what time interval did 133,134,135,136 happen. I hope you guys get my query.
This should get you started