title: How to get boolean value in column based on a range in pandas
body: <pre><code>cf1p2['Age Check'] = (cf1p2['Age']&gt;18 &amp; cf1p2['Age']&lt;60)
  
  </code></pre>
  
  <p>I want to check if <code>cf1p2['Age']</code> is between 18 and 60 and need a result in <code>cf1p2['Age Check']</code> column</p>
  
  <p>The current code is giving the following 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>