I have an array like this:
1.000000000000000000e+00 1.520566339739816631e-37
1.000000000000000000e+00 1.147965053727746877e-34
1.000000000000000000e+00 1.372739777414123007e-34
1.000000000000000000e+00 3.223982667840949347e-35
1.000000000000000000e+00 4.169420491209704059e-36
1.000000000000000000e+00 1.548157233879109404e-37
1.000000000000000000e+00 1.201472854896589573e-37
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
1.000000000000000000e+00 0.000000000000000000e+00
I want to get the row index with conditions like these:
-
The first condition is where the value of the first column = 1 and the value of the second column = 0. Which is started from the 8th column.
-
The second condition is if the first condition repeats for more than 5 times, then it prints out the first row index, which is 8 (or in Python is the 7th row).
Aucun commentaire:
Enregistrer un commentaire