title: How to read values from a specific column in python?
body: <p>For instance, I would like to know if the specified column in a .csv file contains ten consecutive 1's.</p>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>f = open('file.csv', "r")
  readCSV = csv.reader('file.csv',delimiter= ",")
  
  i = 10
  while i &gt; 0:
      for row in readCSV :
          if readCSV.index_col('Output').Contains('1'):
              print('works')
          else:
              pass
  i = i-1
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>AttributeError: '_csv.reader' object has no attribute 'index_col'</p>
  </blockquote>