title: Find position in a csv list
body: <p>Say I have the following CSV file;</p>
  
  <pre><code>1.41, 123456
  1.42, 123456
  1.43, 123456
  </code></pre>
  
  <p>and i want to find the "position"/location of a value in row 0 i.e. "1.41, 1.42, 1.43" in this case, depending on whether the particular row value is greater than or equal to an arbitrary inputted value. </p>
  
  <p>So for example if the inputted value was 1.42, we would return position 0 and 1, or if the inputted value was 1.4, we would return 0, 1 and 2. Likewise, if the value was 1.45 we would not return any positions.  Here is what i have:</p>
  
  <pre><code>out = open("test.csv","rU")
  dataf=csv.reader(out, delimiter=',')
  
  for row in dataf:
      x = row[0]
  
  
      for i in xrange(len(x)):
      if x[i] &gt;=1 :
          print i
  </code></pre>
  
  <p>only to get,</p>
  
  <pre><code>0
  1
  2
  3
  0
  1
  2
  3
  0
  1
  2
  3
  </code></pre>
  
  <p>so then i use</p>
  
  <pre><code>for i in xrange(len(x)):
  if x[i] &gt;=2 :
      print i
  </code></pre>
  
  <p>But i still get the same position values. Can anyone steer me in the right direction?</p>