Hi, 
 
I have a large data file which contains 2 columns of data. The two columns only 
have zero and one. Now I want to cound how many one in between if both columns 
are one. For example, if my data is:
 
1 0
0 0
1 1
0 0     
0 1    x
0 1    x
0 0
0 1    x
1 1
0 0
0 1    x
0 1    x
1 1
 
Then my count will be 3 and 2 (the numbers with x).
 
Are there an efficient way to do this? My data file is pretty big.
 
Thanks
 
Frank
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to