title: Pandas use and operator in LOC function
body: <p>i want to have 2 conditions in the <code>loc</code> function but the <code>&amp;&amp;</code> or <code>and</code> operators dont seem to work.:</p>
  
  <p>df:</p>
  
  <pre><code>business_id  ratings  review_text
  xyz          2        'very bad'
  xyz          1        'passable'
  xyz          3        'okay'
  abc          2        'so so'
  </code></pre>
  
  <p>mycode:
  i am trying to gather all <code>review_text</code> whose ratings are <code>&lt; 3</code> and have <code>id = xyz</code> into a list</p>
  
  <pre><code> id = 'xyz'
  mylist = df.loc[df['ratings'] &lt; 3 and df[business_id] ==id,'review_text'].values.tolist()
  </code></pre>
  
  <p>i should get:</p>
  
  <pre><code>['very bad','passable']
  </code></pre>
  
  <p>This code doesnt work and i get the error:</p>
  
  <pre><code>ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
  </code></pre>
  
  <p>how do i use the <code>and</code> operator correctly here?</p>