title: How do you extract rows given conditions on two columns using python?
body: <pre><code>os.chdir("C:\Users\EDAWES01\Desktop\Cookie profiling")
  data = pandas.read_csv('activity_url.csv', delimiter=';')
  data_read=np.array(data)
  quantity = data_read[0:, 2]
  other_data = data_read[0:, 1]
  x="http"
  url_data = data_read[np.logical_and(quantity==1, any(x in other_data)][:,1] #extraction
  </code></pre>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>TypeError: 'bool' object is not iterable</p>
  </blockquote>